简体   繁体   中英

R in batch mode

是否需要安装Rtools以在批处理模式下运行R,或者如果我只是为R.exe设置环境变量就可以了吗?

You do not need Rtools to run R, you only need Rtools to build R packages from source on the one platform that already gets them as binaries, ie Windows.

If you installed R on Windows the usual way, both R.exe and Rscript.exe will already be in your path.

Use Rscript.exe for batch processing / scripting of R, and see previous questions on StackOverflow for more on Rscript .

I'm pretty sure that I don't use Rtools when running R in batch mode on Windows Vista (because I've never specifically downloaded it).

You could set up the environment variable for R.exe and do it that way, or better yet, use batchfiles . I like the latter method because it always seems to point to the latest version of R on your computer which for me personally is very convenient and saves time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM