platform_variant: Platform specific variant

View source: R/platform.R

platform_variantR Documentation

Platform specific variant

Description

Returns a string to be used within testthat's' snapshot testing. Currently, the Operating System and R Version (major, minor, no patch version) are returned.

Usage

platform_variant(..., os_name = TRUE, r_version = TRUE)

Arguments

...

Must be empty. Allows for parameter expansion.

os_name

if TRUE, include the OS name in the output

r_version

if TRUE, include the major and minor version of the R version, no patch version

Details

If more information is needed in the future to distinguish standard testing environments, this function will be updated accordingly.

See Also

testthat::test_dir()


shinytest2 documentation built on June 24, 2024, 5:16 p.m.