RSCRIPT的二進制可用,但是當我嘗試使用它,我得到:RSCRIPT執行錯誤:沒有這樣的文件或目錄
Rscript helloworld.r
Rscript execution error: No such file or directory
如果我只是做RSCRIPT,它帶來了它通過幫助/用法。
R CMD BATCH工作正常。
我試着在開始時在R代碼中添加shebang行,但它沒有工作。
#!/ sys_apps_01/R/R-3.2.0 /斌/ R
#!/ sys_apps_01/R/R-3.2.0 /斌/ RSCRIPT
你是什麼操作系統和什麼'這Rscript'返回? – nrussell
OS是RedHat 6並且Rscript返回Rscript的用法(用法:/ path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]) –
bash-4.1 $其中Rscript /sys_apps_01/R/R-3.2.0/bin/R腳本 –