I'm a beginner at R. I have updated R, Rstudio and rtools to the newest version(R for windows 4.0.2, Rstudio1.3.1073, rtools40). I have followed the instructions in RTools: Toolchains for building R and R packages from source on Windows
while downloading rtools40, I achieved to set the path, however, I ran into trouble while I installed the packages, I hope someone could answer my doubts.
here is my code:
file.edit('~/.Renviron')
writeLines('PATH="{RTOOLS40_HOME}\\usr\\bin;{PATH}"', con = "~/.Renviron")
Restarting R session...
Sys.which("make")
make
"C:\PROGRA~1\R\R-40~1.2\rtools40\usr\bin\make.exe"
install.packages("jsonlite", type = "source")
Warning in install.packages :
unable to access index for repository ...tps://cran.rstudio.com.....:
无法打开URL'...ttps://cran.rstudio.com/...................'
Installing package into ‘C:/Users/asus/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository ...ttps://......................................:
无法打开URL'...ttps://cran.rstudio.com/src...........'
Warning in install.packages :
package ‘jsonlite’ is not available (for R version 4.0.2)