Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linuxでは、/ usrパスを正しいパスC:/ Programに置き換えてWindows!#/usr/bin/Rscriptを呼び出すことができるようmyScript.R [options]に配置していました...動作しません(何も起こっていません)。私が知っている唯一の方法は、することですRscript.exe myScript.R [options]。Unix の動作を模倣することは可能ですか?
!#/usr/bin/Rscript
myScript.R [options]
Rscript.exe myScript.R [options]
Windows でデフォルトcmd.exeのシェルを使用していて、2 つ目のファイルを使用する場合は、次のmyScript.bat行を含むバッチ ファイル を作成できます。
cmd.exe
myScript.bat
Rscript.exe myScript.R %*
そして、次のように実行します。
myScript
この行の最後に引数を含めることができますが、スペースを含めないでください。