Rscript: Run the commands 'Rscript' and 'R CMD'

Description Usage Arguments Value Examples

View source: R/command.R

Description

Wrapper functions to run the commands Rscript and R CMD.

Usage

1
2
3

Arguments

args

A character vector of command-line arguments.

...

Other arguments to be passed to system2().

Value

A value returned by system2().

Examples

1
2
3
library(xfun)
Rscript(c("-e", "1+1"))
Rcmd(c("build", "--help"))

yihui/xfun documentation built on Oct. 25, 2018, 11:44 p.m.