script_file_get {scriptloc} | R Documentation |
Get location of script that was executed through Rscript
Description
When a script is being called from the command line using Rscript, the relative path of the script being called will be present in the command line arguments passed to the file. This is used to get the relative path of the script.
Usage
script_file_get(cargs)
Arguments
cargs |
- Output from commandArgs(trailingOnly = F) |
[Package scriptloc version 1.0.0 Index]