Description Usage Details Value Note See Also Examples
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).
1 2 3 4 |
This gives details of the OS under which R was built, not the one
under which it is currently running (for which see
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.
R.Version
returns a list with character-string components
platform |
the platform for which R was built. A triplet of the
form CPU-VENDOR-OS, as determined by the configure script. E.g,
|
arch |
the architecture (CPU) R was built on/for. |
os |
the underlying operating system. |
system |
CPU and OS, separated by a comma. |
status |
the status of the version (e.g., |
major |
the major version number |
minor |
the minor version number, including the patchlevel |
year |
the year the version was released |
month |
the month the version was released |
day |
the day the version was released |
svn rev |
the Subversion revision number, which should be either
|
language |
always |
version.string |
a
|
R.version
and version
are lists of class
"simple.list"
which has a print
method.
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 R.version$version.string
for simplicity and backwards compatibility.
sessionInfo
which provides additional information;
getRversion
typically used inside R code,
.Platform
, Sys.info
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.