Description Usage Details Value Author(s) See Also Examples
Get the file name of the Rscript that is currently being executed. The function is mainly called by stand-alone Rscripts.
1 |
The name is determined by the --file
/-f
option in the command line.
When the R session was not initiated by a Rscript (i.e. there is no --file
or -f
option in the command line), NULL
is returned.
Note that the function supports calling Rscript via --file
or -f
with R
. This applies to cases where a Rscript, marked as executable, and is called from the command line.
A character string containing the file name of the Rscript.
Jitao David Zhang <jitao_david.zhang@roche.com>
commandArgs
and getArg
1 | ## Not run: scriptName()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.