Problems executing script from command line in R. Error message: cannot find path specified -
i have been trying execute simple test.r
setwd("c:\users\jdd\documents") test <- 2*6598 filename = "test.csv" write.csv(test,file=filename)
via next command line command in windows:
"c:\program files\r\r-2.15.2\bin\r.exe" cmd batch --vanilla --slave "c:\users\jdd\documents\test.r"
when execute next error:
the scheme cannot find path specified.
i have been trying work out solution on basis of provided error message, failed far. wondering if can help me can execute script straight command line. thanks
thanks @sebastian-c! tried utilize rscript, investigated before. however, problem different one. appears in installation there r.exe
, rscript.exe
file in .\bin
, 1 in .\bin\x64
. first 1 not working properly, sec 1 is. comment made @roland of import well, since 1 time working got error message!
the next command did job:
"c:\program files\r\r-2.15.2\bin\x64\rscript.exe" "c:\users\jdd\documents\test.r"
and corrected text.r is:
setwd("c:\\users\\jdd\\documents") test <- 2*6598 filename = "test.csv" write.csv(test,file=filename)
r command-line
No comments:
Post a Comment