How to prevent command line args from being interpreted by R vs. only by my script?
问题 I'm using the docopt implementation for R. My script has a command line option where the short form is -g . When I run my script, it seems this argument is first interpreted by R and then by my script. Therefore I get a wrist slap about not specifying a value for the GUI. Can I prevent R from trying to work with these command line args? Example of a script: #!/usr/bin/Rscript suppressPackageStartupMessages(library(docopt)) "docopt practice script Usage: foo.R [-g <goodies>] Options: -g