Passing multiple arguments via command line in R
问题 I am trying to pass multiple file path arguments via command line to an Rscript which can then be processed using an arguments parser. Ultimately I would want something like this Rscript test.R --inputfiles fileA.txt fileB.txt fileC.txt --printvar yes --size 10 --anotheroption helloworld -- etc... passed through the command line and have the result as an array in R when parsed args$inputfiles = "fileA.txt", "fileB.txt", "fileC.txt" I have tried several parsers including optparse and getopt