Skip to content
Prev 7636 / 63424 Next

Testing for platform type

The recommended way to test for a platform type is via .Platform$OS.type.
machine() has provided equivalent information, but will be deprecated in
1.6.0.

Using R.Version()$os == "Win32" does not work as the OS name is subject to
change, and is never `Win32' in R 1.5.x, where autoconf was used to make
the config.h file.