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

View source: R/command.R

RscriptR Documentation

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

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

yihui/xfun documentation built on April 14, 2024, 6:23 a.m.