Problems executing script from command line in R. Error message: cannot find path specified

前端 未结 2 1697
醉话见心
醉话见心 2021-02-08 12:28

I have been trying to execute a simple test.R

setwd(\"C:\\Users\\jdd\\Documents\")
test <- 2*6598
filename = \"test.csv\"
write.csv(test,file=filename)
         


        
2条回答
  •  你的背包
    2021-02-08 12:43

    As mentioned here, it might has something to do with 64bit version of R. The problem is that Rscript.exe itself is attempting to access a missing file on the system. The obvious fix is explicitly add 'x64' to the path of the other Rscript.exe that was installed:

    "C:\Program Files\R\R-2.15.2\bin\x64\Rscript.exe" --version
    R scripting front-end version 3.0.2 (2013-09-25)
    

提交回复
热议问题