powered by
Get path current running script
opt_get_path(opts = commandArgs(), full.name = FALSE)
character; cector from which to parse options (default: commandArgs() )
commandArgs()
boolean; expand to full path(?) This function is deprecated, use this_file instead.
this_file
character; path to Rscript or NA if there isn't one.
NA
http://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script
opt_grab()
base::commandArgs()
# NOT RUN { optigrab:::opt_get_path() # }
Run the code above in your browser using DataLab