Learn R Programming

assertive (version 0.3-0)

not_this_os: Failure for bad OS

Description

Wrapper to false for failure messages when the OS is not as expected.

Usage

not_this_os(os)

Arguments

os
A string giving the name of the OS that was desired.

Value

  • A string showing the results of .Platform$OS and Sys.info()['sysname'].

See Also

.Platform and Sys.info

Examples

Run this code
assertive:::not_this_os("Windows")
assertive:::not_this_os("BSD-based")

Run the code above in your browser using DataLab