xfun (version 0.4)

Rscript: Run the commands Rscript and R CMD

Description

Wrapper functions to run the commands Rscript and R CMD.

Usage

Rscript(args, ...)

Rcmd(args, ...)

Arguments

args

A character vector of command-line arguments.

...

Other arguments to be passed to system2().

Value

A value returned by system2().

Examples

Run this code
# NOT RUN {
library(xfun)
Rscript(c("-e", "1+1"))
Rcmd(c("build", "--help"))
# }

Run the code above in your browser using DataCamp Workspace