systemR
From R.utils v1.23.2
by Henrik Bengtsson
Launches another R process from within R
Launches another R process from within R via system
() by automatically locating the
R executable, cf [1].
- Keywords
- programming, IO
Usage
## S3 method for class 'default':
systemR(command="", ..., Rcommand="R", verbose=FALSE)
Arguments
Value
- Returns what
system
() returns.
References
[1] R-devel thread 'Best way to locate R executable from within R?', May 22, 2012.
See Also
The R executable is located using R.home
(), which
is then launched using system
().
Examples
res <- systemR("--slave -e cat(runif(1))", intern=TRUE)
cat("A random number: ", res, "", sep="")
Community examples
Looks like there are no examples yet.