.Script {base}R Documentation

Scripting Language Interface


Run a script through its interpreter with given arguments.


.Script(interpreter, script, args, ...)


interpreter a character string naming the interpreter for the script.
script a character string with the base file name of the script, which must be located in the ‘interpreter’ subdirectory of ‘R_SHARE_DIR’ (normally ‘R_HOME/share’).
args a character string giving the arguments to pass to the script.
... further arguments to be passed to system when invoking the interpreter on the script.


This function is for R internal use only.


## not useful on Windows, where the help is zipped.
.Script("perl", "massage-Examples.pl",
        paste("tools", system.file("R-ex", package = "tools")))

[Package base version 2.5.0 Index]