Rscript
and R CMD
Wrapper functions to run the commands Rscript
and R CMD
.
Rscript(args, ...)Rcmd(args, ...)
A value returned by system2()
.
A character vector of command-line arguments.
Other arguments to be passed to system2()
.
library(xfun)
Rscript(c("-e", "1+1"))
Rcmd(c("build", "--help"))
Run the code above in your browser using DataLab