Check the operating system
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 |
[character(1)] |
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
returns a string with the error message.
The function expect_os
always returns an
expectation
.
testOS("linux")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.