Learn R Programming

fritools (version 3.3.0)

get_r_cmd_batch_script_path: Get the Path of the R Code File in Case of an R CMD BATCH Run

Description

Retrieve the path from parsing the command line arguments of a R CMD BATCH run.

Usage

get_r_cmd_batch_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 R CMD BATCH run.

See Also

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

Examples

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

Run the code above in your browser using DataLab