Rscript {xfun}R 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"))

[Package xfun version 0.44 Index]