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.
platform_variant(..., os_name = TRUE, r_version = TRUE)
Must be empty. Allows for parameter expansion.
if TRUE
, include the OS name in the output
if TRUE
, include the major and minor version of the R version, no patch version
If more information is needed in the future to distinguish standard testing environments, this function will be updated accordingly.