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"))

xfun documentation built on Nov. 1, 2024, 1:06 a.m.