Debian Codegraph @

man/sessionInfoX.Rd

raw
1 \name{sessionInfoX}% sessionInfo help is ~/R/D/r-devel/R/src/library/utils/man/sessionInfo.Rd
2 \title{Extended Information About the Current R Session}
3 \alias{isRshared}
4 \alias{sessionInfoX}
5 \alias{print.sessionInfoX}
6 \description{
7 Collect (and print) information about the current \R session and
8 environment, using \code{\link{sessionInfo}()} and more mostly
9 low-level and platform dependent information.
10
11 \code{isRshared()} is a utility called from \code{sessionInfoX()}.
12 }
13 \usage{
14 sessionInfoX(pkgs = NULL, list.libP = FALSE, extraR.env = TRUE)
15
16 \method{print}{sessionInfoX}(x, locale = TRUE, RLIBS = TRUE, Renv = TRUE, \dots)
17
18 isRshared(platform = .Platform)
19 }
20 \arguments{
21 \item{pkgs}{\code{NULL} (default), \code{TRUE} or a
22 \code{\link{character}} vector of \R package names, whose
23 \code{\link{packageDescription}()}s are wanted. No packages by
24 default, \code{TRUE} takes all currently loaded pkgs.}
25 \item{list.libP}{a logical indicating if for all
26 \code{\link{.libPaths}} entries, the files should be listed via
27 \code{\link{list.files}}.}
28 \item{extraR.env}{logical indicating if \emph{all} environment
29 variables should be recorded which start with \code{"R_"} or
30 \code{"_R_"}.}
31 %% print():
32 \item{x}{typically the result of \code{sessionInfoX()}.}
33 \item{locale}{logical, passed to \code{\link{print.sessionInfo}()}
34 indicating if the locale information should be printed.}
35 \item{RLIBS}{logical indicating if the information about R_LIBS should
36 be printed.}
37 \item{Renv}{logical indicating if the information about R environment
38 variables should be printed.}
39 \item{\dots}{passed to \code{\link{print}} methods.}
40 %% isRshared():
41 \item{platform}{a \code{\link{list}} \dQuote{like} \code{\link{.Platform}}.}
42 }
43 %% \details{
44 %% }
45 \value{For \code{isRshared()}, a \code{\link{logical}} indicating if \R has
46 been installed as \dQuote{shared}, i.e., linked to \file{libR*} shared
47 library.
48
49 For \code{sessionInfoX()}, an object of S3 class \code{"sessionInfoX"}, a \code{\link{list}}
50 with components (there may be more, experimental and not yet listed here):
51 \item{sInfo}{simply the value of \code{\link{sessionInfo}()}.}
52 \item{sysInf}{the value of \code{\link{Sys.info}()}.}
53 \item{capabilities}{the value of \code{\link{capabilities}()}.}
54 \item{Machine}{the value of \code{\link{.Machine}}.}
55 \item{compiledBy}{for \R 4.3.0 and newer, the value of \code{\link{R_compiled_by}()}.}
56 \item{extSoft}{for \R 3.2.0 and newer, the value of \code{\link{extSoftVersion}()}.}
57 \item{grSoft}{for \R 3.2.0 and newer, the value of \code{\link{grSoftVersion}()}.}
58 \item{tclVersion}{for \R 3.2.0 and newer and when \pkg{tcltk} is loaded,
59 the Tcl version (\code{\link[tcltk]{tclVersion}()}).}
60 \item{LAPACK}{for \R 3.0.3 and newer, the value of \code{\link{La_version}()}.}
61 \item{pcre}{for \R 3.1.3 and newer, the value of \code{\link{pcre_config}()}.}
62 \item{pkgDescr}{If \code{pkgs} was non-empty, a named
63 \code{\link{list}} of \code{\link{packageDescription}()}s for each
64 entry in \code{pkgs}.}
65 \item{libPath}{the value of \code{\link{.libPaths}()}.}
66 \item{RLIBS}{a \code{\link{character}} vector of entries from
67 \code{\link{Sys.getenv}("R_LIBS")}, typically very similar to the
68 \code{libPaths} component.}
69 \item{n.RLIBS}{simply a \code{\link{normalizePath}()}ed version of \code{RLIBS}.}
70 \item{R.env}{a named character vector with the \dQuote{important} \R
71 environment variables \code{R_ENVIRON}, \code{R_PROFILE},
72 \code{R_CHECK_ENVIRON}.}
73 \item{xR.env}{if \code{extraR.env} was true, a named character vector
74 of \dQuote{all R related} environment variables, as specified in
75 \code{extraR.env}'s description above.}
76 \item{shared}{(not available on Windows, where it is conceptually always true:)
77 \code{\link{logical}} indicating if the version of \R is
78 \dQuote{shared}.} %%i.e., ... <<< FIXME: explain more
79
80 %% FIXME: unfinished
81
82 }
83 \author{Martin Maechler, December 2015 ff.}
84 \seealso{
85 \code{\link{sessionInfo}},
86 \code{\link{.libPaths}}, \code{\link{R.version}}, \code{\link{Sys.getenv}}.
87 }
88 \examples{
89 six0 <- sessionInfoX()
90 six0$shared # useful (for some, e.g., MM) on Unix alikes
91
92 sixN <- sessionInfoX("nlme", list.libP = TRUE)
93 sixN # -> print() method for "sessionInfoX"
94 names(sixN)
95 str(sixN, max = 1)# outline of lower-level structure
96 str(sixN$pkgDescr) # list with one component "nlme"
97 }
98 \keyword{misc}