checkOS {checkmate} | R Documentation |
Check the operating system
Description
Check the operating system
Usage
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)
Arguments
os |
[ |
add |
[ |
.var.name |
[ |
info |
[ |
label |
[ |
Value
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
.
Examples
testOS("linux")