The R Project SVN R

Rev

Rev 84589 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84589 Rev 85990
Line 50... Line 50...
50
  \code{\link{getwd}} for the working directory.
50
  \code{\link{getwd}} for the working directory.
51
 
51
 
52
  The help for \sQuote{\link{environment variables}} lists many of the
52
  The help for \sQuote{\link{environment variables}} lists many of the
53
  environment variables used by \R.
53
  environment variables used by \R.
54
}
54
}
55
\examples{\dontshow{## IGNORE_RDIFF_BEGIN}
55
\examples{\dontdiff{
56
## whether HOST is set will be shell-dependent e.g. Solaris' csh did not.
56
## whether HOST is set will be shell-dependent e.g. Solaris' csh did not.
57
Sys.getenv(c("R_HOME", "R_PAPERSIZE", "R_PRINTCMD", "HOST"))
57
Sys.getenv(c("R_HOME", "R_PAPERSIZE", "R_PRINTCMD", "HOST"))
58
 
58
 
59
s <- Sys.getenv() # *all* environment variables
59
s <- Sys.getenv() # *all* environment variables
60
op <- options(width=111) # (nice printing)
60
op <- options(width=111) # (nice printing)
Line 64... Line 64...
64
## Language and Locale settings -- but rather use Sys.getlocale()
64
## Language and Locale settings -- but rather use Sys.getlocale()
65
s[grep("^L(C|ANG)", names(s))]
65
s[grep("^L(C|ANG)", names(s))]
66
## typically R-related:
66
## typically R-related:
67
s[grep("^_?R_", names(s))]
67
s[grep("^_?R_", names(s))]
68
options(op)# reset
68
options(op)# reset
69
\dontshow{## IGNORE_RDIFF_END}
-
 
70
}
69
}}
71
\keyword{environment}
70
\keyword{environment}
72
\keyword{utilities}
71
\keyword{utilities}