Skip to content

Rtools error

4 messages · Neha gupta, Rui Barradas, Tomas Kalibera

#
Hello, I want to download a package and it gives me the error:

WARNING: Rtools is required to build R packages, but no version of
Rtools compatible with R 4.2.0 was found. (Only the following
incompatible version(s) of Rtools were found: 4.3.5550)

Please download and install Rtools 4.2 from
https://cran.r-project.org/bin/windows/Rtools/.


I have downloaded it but dont know what to do further.


Best regards
#
On 11/27/23 06:07, Neha gupta wrote:
This error doesn't come from base R. If it is from RStudio, then either 
please refer to their support, or instead try without RStudio, and then 
if you run into these basic problems, a better matching list would be 
R-help.
Basically in common cases you just run the .exe installer and accept the 
defaults. R will find the installed version automatically when it needs 
to install packages.

But unless you have special need to use R 4.2, you could instead install 
the latest R 4.3.

Tomas
#
?s 05:07 de 27/11/2023, Neha gupta escreveu:
Hello,

Have you checked it is in the PATH system variable?
After installing Rtools you must edit the Windows PATH. It not, the 
system will still find the older Rtools version.

Hope this helps,

Rui Barradas
#
On 11/27/23 18:58, Rui Barradas wrote:
No, well as long as we are talking about base R, which we should be 
talking about on this list. R automatically adds Rtools to PATH when it 
is needed there. R knows which version of Rtools it needs (R 4.2 uses 
Rtools42, R 4.3 uses Rtools43, R-devel currently uses Rtools43 but that 
will change before R 4.4 is released).

More details are in 
https://cran.r-project.org/bin/windows/base/howto-R-4.3.html

Tomas