platform_variant | R Documentation |
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. |
os_name |
if |
r_version |
if |
If more information is needed in the future to distinguish standard testing environments, this function will be updated accordingly.
testthat::test_dir()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.