Learn R Programming

fritools (version 3.3.0)

get_rscript_script_path: Get the Path of the R Code File in Case of an Rscript Run

Description

Retrieve the path from parsing the command line arguments of a Rscript run.

Usage

get_rscript_script_path()

Arguments

Value

A vector of mode character giving the name of the R code file. Will be character(0) if not in an Rscript run.

See Also

Other script path getter functions: get_r_cmd_batch_script_path(), get_script_name(), get_script_path()

Examples

Run this code
# NOT RUN {
get_rscript_script_path()
# }

Run the code above in your browser using DataLab