R.Version() provides detailed information about the version of
R.version is a variable (a
list) holding this
version is a copy of it for S compatibility).
R.Version() R.version R.version.string version
This gives details of the OS under which R was built, not the one
under which it is currently running (for which see
Note that OS names might not be what you expect: for example OS X Mavericks 10.9.4 identifies itself as darwin13.3.0, Linux usually as linux-gnu and Solaris 10 as solaris2.10.
- the platform for which R was built. A triplet of the
form CPU-VENDOR-OS, as determined by the configure script. E.g,
- the architecture (CPU) R was built on/for.
- the underlying operating system.
- CPU and OS, separated by a comma.
- the status of the version (e.g.,
- the major version number
- the minor version number, including the patchlevel
- the year the version was released
- the month the version was released
- the day the version was released
- svn rev
- the Subversion revision number, which should be either
"unknown"or a single number. (A range of numbers or a number with M or S appended indicates inconsistencies in the sources used to build this version of R.)
characterstring concatenating some of the info above, useful for plotting, etc.
R.Versionreturns a list with character-string components
versionare lists of class
"simple.list"which has a
Do not use
R.version$os to test the platform the
code is running on: use
.Platform$OS.type instead. Slightly
different versions of the OS may report different values of
R.version$os, as may different versions of R.
R.version.string is a copy of
for simplicity and backwards compatibility.
require(graphics) R.version$os # to check how lucky you are ... plot(0) # any plot mtext(R.version.string, side = 1, line = 4, adj = 1) # a useful bottom-right note ## a good way to detect OS X: if(grepl("^darwin", R.version$os)) message("running on OS X")