\Header{R.Version}{Version Information}
\alias{R.version}{R.Version}
\methalias{R.version.string}{R.Version}
\alias{version}{R.Version}
\keyword{environment}{R.Version}
\keyword{sysdata}{R.Version}
\keyword{programming}{R.Version}
\begin{Description}\relax
\code{R.Version()} provides detailed information about the version of
\R{} running. \\
\code{R.version} is a variable (a \code{\Link{list}}) holding this
information (and \code{version} is a copy of it for
S compatibility), whereas \code{R.version.string} is a simple
\code{\Link{character}} string, useful for plotting, etc.
\end{Description}
\begin{Usage}
\begin{verbatim}
R.Version()
R.version
R.version.string
\end{verbatim}
\end{Usage}
\begin{Value}
\code{R.Version} returns a list with components
\begin{ldescription}
\item[\code{platform}] the platform for which \R{} was built.  Under Unix, a
triplet of the form CPU-VENDOR-OS, as determined by the configure
script.  E.g, \code{"i586-unknown-linux"}.
\item[\code{arch}] the architecture (CPU) \R{} was built on/for.
\item[\code{os}] the underlying operating system
\item[\code{system}] CPU and OS.
\item[\code{status}] the status of the version (e.g., \code{"Alpha"})
\item[\code{status.rev}] the status revision level
\item[\code{major}] the major version number
\item[\code{minor}] the minor version number
\item[\code{year}] the year the version was released
\item[\code{month}] the month the version was released
\item[\code{day}] the day the version was released
\item[\code{language}] always \code{"R"}.
\end{ldescription}
\end{Value}
\begin{Note}\relax
Do \emph{not} use \code{R.version\$os} to test the platform the
code is running on: use \code{.Platform\$OS.type} instead.  Slightly
different versions of the OS may report different values of
\code{R.version\$os}, as may different versions of \R.
\end{Note}
\begin{SeeAlso}\relax
\code{\Link{.Platform}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
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
\end{ExampleCode}
\end{Examples}

