How can I put the Rtools on PATH?
1
0
Entering edit mode
10 months ago
Sib ▴ 20

I Installed the last version of R. Now when I use install.packages function, it gives me this warning:

 >install.packages("limma")
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/HAMRAH/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘limma’ is not available (for R version 4.0.0)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/PACKAGES'

I downloaded the Rtools from the address https://cran.rstudio.com/bin/windows/Rtools/ and installed Rtools. But in the address, it is said that after installing the package we should put the Rtools on PATH. I don't know how to do this. I will be grateful if you help me.

R • 3.4k views
ADD COMMENT
0
Entering edit mode
ADD COMMENT
0
Entering edit mode

Yes. I saw that but my problem is that I don't understand the meaning of this:

You can do this with a text editor, or you can even do it from R like so: writeLines('PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"', con = "~/.Renviron")

when I copy and paste this line in R

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

and then restart R, I can not install.packages yet. and the warning stays.

ADD REPLY

Login before adding your answer.

Traffic: 2637 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6