running R from windows command prompt

后端 未结 3 1156

I have a R program in a txt file say \"functions.txt\".
I load the \"functions.txt\" file the R using source(\"function.txt\") a

3条回答
  •  执笔经年
    2020-12-04 20:46

    Here's a command line script, based on code above:

    d:\misc2\bin\Rscript.exe    d:\r_code\mycode.r
    

    Using Windows 7, I ran it as a .bat file. Works fine. Thanks for the tip. (of course, these are just my particular subdirectories)

提交回复
热议问题