| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/command.R |
| 3 |
\name{Rscript} |
| 4 |
\alias{Rscript} |
| 5 |
\alias{Rcmd} |
| 6 |
\title{Run the commands \command{Rscript} and \command{R CMD}} |
| 7 |
\usage{ |
| 8 |
Rscript(args, ...) |
| 9 |
|
| 10 |
Rcmd(args, ...) |
| 11 |
} |
| 12 |
\arguments{ |
| 13 |
\item{args}{A character vector of command-line arguments.} |
| 14 |
|
| 15 |
\item{...}{Other arguments to be passed to \code{\link[=system2]{system2()}}.} |
| 16 |
} |
| 17 |
\value{ |
| 18 |
A value returned by \code{system2()}. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
Wrapper functions to run the commands \command{Rscript} and \command{R CMD}. |
| 22 |
} |
| 23 |
\examples{ |
| 24 |
library(xfun) |
| 25 |
Rscript(c("-e", "1+1")) |
| 26 |
Rcmd(c("build", "--help")) |
| 27 |
} |