powered by
Rscript
Retrieve the path from parsing the command line arguments of a Rscript run.
get_rscript_script_path()
A vector of mode character giving the name of the R code file. Will be character(0) if not in an Rscript run.
mode
Other script path getter functions: get_r_cmd_batch_script_path(), get_script_name(), get_script_path()
get_r_cmd_batch_script_path()
get_script_name()
get_script_path()
# NOT RUN { get_rscript_script_path() # }
Run the code above in your browser using DataLab