R command line passing a filename to script in arguments (Windows)

前端 未结 4 1446
广开言路
广开言路 2020-12-01 05:14

I\'m having a hard time passing a filename to my R script. The file is a csv file with the batch parameters for multiple runs of the script. I am trying to include it here s

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 05:16

    Besides using Rscript (as Josh said) you should also use the CRAN packages getopt or optparse as they were written for this very purpose.

提交回复
热议问题