Skip to contents

get the command line arguments

Usage

cmdargs(x = NULL)

Arguments

x

one of 'wd, R_env, script_path, script_dir, env_configs'

Value

list of all arguments, or single value of select argument

Examples

cmdargs()
#> $wd
#> [1] "/home/runner/work/baizer/baizer/docs/reference"
#> 
#> $R_env
#> [1] "/opt/R/4.3.1/lib/R/bin/exec/R"
#> 
#> $script_path
#> [1] "/home/runner/work/_temp/95135480-c7c4-4c46-9e9d-7499ab046e48"
#> 
#> $script_dir
#> [1] "/home/runner/work/_temp"
#> 
#> $env_configs
#> [1] "--no-echo"                                                          
#> [2] "--no-restore"                                                       
#> [3] "--file=/home/runner/work/_temp/95135480-c7c4-4c46-9e9d-7499ab046e48"
#>