Skip to contents

interpret_arg() catch arguments through commandArgs() and interpret them to return a list of arguments for those that are of a "good shape".

Usage

interpret_args(x = commandArgs(trailingOnly = TRUE))

Arguments

x

character of parameters to be treated. Default to commandArgs(trailingOnly = TRUE).

Value

A list of arguments

Examples


x = c(1, "x=2", "y='a=1'")
interpret_args(x)
#> [[1]]
#> [1] "1"
#> 
#> $x
#> [1] "2"
#> 
#> $y
#> [1] "'a=1'"
#>