| checkOS | R Documentation |
Check the operating system
checkOS(os)
check_os(os)
assertOS(os, add = NULL, .var.name = NULL)
assert_os(os, add = NULL, .var.name = NULL)
testOS(os)
test_os(os)
expect_os(os, info = NULL, label = NULL)
os |
[ |
add |
[ |
.var.name |
[ |
info |
[ |
label |
[ |
Depending on the function prefix:
If the check is successful, the functions
assertOS/assert_os return
x invisibly, whereas
checkOS/check_os and
testOS/test_os return
TRUE.
If the check is not successful,
assertOS/assert_os
throws an error message,
testOS/test_os
returns FALSE,
and checkOS/check_os
return a string with the error message.
The function expect_os always returns an
expectation.
testOS("linux")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.