I need to logically check if the operating system of the Solaris computer is. In other words, I need a way to check if the Solaris operating system is if it returns TRUE , if not return FALSE . I can easily check whether the OS is Windows, Mac, Linux, because I have access to these systems, what type (for example, "unix", "windows") to search, because this information is usually available for Google. Something like:
.Platform$OS.type == "unix" .Platform$OS.type == "windows"
works, and there are other approaches well documented on SO (for example, Sys.info()["sysname"] == "Windows" ). In my search for SO and Google, I came across many questions regarding Windows, Mac, Linux, but I couldn’t determine in any way whether the OS is Solaris. For example, this link, which leads to duplication of other similar issues, addresses the OS definition, but not a logical check if Solaris.
How to check OS in R
How can I programmatically determine if the OS of a Solaris computer is?
I may need more specific information about which Solaris forms are of interest to me (I'm not sure because I know very little about the OS). Of particular interest are the Solaris systems used in CRAN checks:
- R-patch-Solaris-x86
- Mr.-patch-Solaris-SPARK
r
Tyler rinker
source share