rscript: Execute an R script located in the exec directory of a...

Description Usage Arguments Author(s) References

View source: R/exec.R

Description

Execute an R script located in the exec directory of a package

Usage

1
2
rscript(package, script, arguments = commandArgs(TRUE), 
	run = TRUE, dir = "exec" )

Arguments

package

package in which the script is contained

script

name of the script, relative to the exec directory of the package

arguments

additional arguments. Typically used at the command line

run

logical. if TRUE the script is run. Otherwise the command is returned

dir

sub directory of the package, defaults to "exec"

Author(s)

Romain Francois <[email protected]>

References

Writing R extensions


exec documentation built on May 31, 2017, 5:08 a.m.