Last chance! 50% off unlimited learning
Sale ends in
R.Version()
provides detailed information about the version of
R running. R.version
is a variable (a list
) holding this
information (and version
is a copy of it for S compatibility).
R.Version()
R.version
R.version.string
version
R.Version
returns a list with character-string components
"i686-unknown-linux-gnu"
or "i386-pc-mingw32"
.
"alpha"
)"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.)
"R"
.character
string concatenating some of the info above,
useful for plotting, etc.R.version
and version
are lists of class
"simple.list"
which has a print
method.
Sys.info
).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.
sessionInfo
which provides additional information;
getRversion
typically used inside R code,
.Platform
, Sys.info
.
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")
Run the code above in your browser using DataLab