I have an R script I intend to call from the command line, which includes a function which may take option ...
arguments. I'd like to parse any arguments given at the command line as arguments in ...
. How might I do this?
I've tried the rlang package. I thought something like this would work:
z <- c('x=1', 'y=2') #but actually, z <- commandArgs(T)
c(UQS(z))
Here I would expect to get a vector as if I had called c(x=1, y=2)
. Instead I get a list of names x=1
&c.