Running R Code from Command Line (Windows)

前端 未结 4 911
南笙
南笙 2020-12-02 17:41

I have some R code inside a file called analyse.r. I would like to be able to, from the command line (CMD), run the code in that file without having to pass through the R te

4条回答
  •  渐次进展
    2020-12-02 17:49

    Identify where R is install. For window 7 the path could be

    1.C:\Program Files\R\R-3.2.2\bin\x64>
    2.Call the R code
    3.C:\Program Files\R\R-3.2.2\bin\x64>\Rscript Rcode.r
    

提交回复
热议问题