The R Project SVN R

Rev

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

Rev 9925 Rev 9936
Line 1... Line 1...
1
\name{putenv}
1
\name{Sys.putenv}
2
\title{Set Environment Variables}
2
\title{Set Environment Variables}
3
\usage{
3
\usage{
4
putenv(\dots)
4
Sys.putenv(\dots)
5
}
5
}
6
\alias{putenv}
6
\alias{Sys.putenv}
7
\arguments{
7
\arguments{
8
  \item{\dots}{arguments in \code{name=value} form, with \code{value}
8
  \item{\dots}{arguments in \code{name=value} form, with \code{value}
9
    coercible to a character string.}
9
    coercible to a character string.}
10
}
10
}
11
\description{
11
\description{
12
  \code{putenv} sets environment variables (for other processes called
12
  \code{putenv} sets environment variables (for other processes called
13
  from within \R or future calls to \code{\link{getenv}} from this
13
  from within \R or future calls to \code{\link{Sys.getenv}} from this
14
  \R process).
14
  \R process).
15
}
15
}
16
\value{
16
\value{
17
  A logical vector of the same length as \code{x}, with elements being
17
  A logical vector of the same length as \code{x}, with elements being
18
  true if setting the corresponding variable succeeded.
18
  true if setting the corresponding variable succeeded.
19
}
19
}
20
\details{
20
\details{
21
  Non-standard \R names must be quoted: see the Examples section.
21
  Non-standard \R names must be quoted: see the Examples section.
22
}
22
}
23
\note{
23
\note{
24
  Not all systems need support \code{putenv}.
24
  Not all systems need support \code{Sys.putenv}.
25
}
25
}
26
\seealso{
26
\seealso{
27
  \code{\link{getenv}},
27
  \code{\link{Sys.getenv}},
28
  \code{\link{setwd}} for the working directory.
28
  \code{\link{setwd}} for the working directory.
29
}
29
}
30
\examples{
30
\examples{
31
print(putenv("R_TEST"="testit", ABC=123))
31
print(Sys.putenv("R_TEST"="testit", ABC=123))
32
getenv("R_TEST")
32
Sys.getenv("R_TEST")
33
}
33
}
34
\keyword{environment}
34
\keyword{environment}
35
\keyword{utilities}
35
\keyword{utilities}