r-windows / docs

Documentation for rtools40 and R for Windows
31 stars 10 forks source link

Document that rtools40 should be on path #7

Closed andrie closed 4 years ago

andrie commented 4 years ago

If the correct version of make is not on the path, package compilation can lead to errors like this:

ERROR: compilation failed for package '....'
* removing 'C:/R/R-devel/library/....'

This is because the correct version of rtools is not on the path. To fix this, you should add the following line to your .Renviron file:

PATH = "${RTOOLS40_HOME}\usr\bin;${PATH}"
jeroen commented 4 years ago

Fixed in the readme: https://github.com/r-windows/docs