Is there a simple way to programmatically determine if an R script is being executed in Windows vs. Linux?
.Platform$OS.type
returns
[1] "unix"
or something else.