How to install Rtools?

13.8k Views Asked by At

I need to install Rtools in order to work with keras package. I've successfully downloaded Rtools from https://cran.r-project.org/bin/windows/Rtools/, but then I need to "put it on a path", as it is stated here on this website. I don't understand what is written here about doing that. Could you,please, explain it to me in a simple way and, desirably, with an example?

Thank you for your help.

1

There are 1 best solutions below

19
On BEST ANSWER

The path is the list of all directories the operating system is going to look to find a program when you call it.
An alternative instead of modifying the system path, is to create a file which tells R where to find RTools.
As stated in the installation doc, just open an R console and execute once:

writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")