Cannot utilize RTools40 and download any packages

I have reinstalled R, RTools and RStudio several times but could not download any packages. I have tried to watch youtube tutorials for installation but never succeeded in operating the program correctly.

I get the following warnings and cautions:

writeLines('PATH="{RTOOLS40_HOME}\\usr\\bin;{PATH}"', con = "~/.Renviron")
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") :
cannot open file 'C:/Users/Agon BES?M?/Documents/.Renviron': Invalid argument
install.packages("jsonlite", type = "source")
trying URL ''
Content type 'application/x-gzip' length 1057524 bytes (1.0 MB)
downloaded 1.0 MB

  • installing source package 'jsonlite' ...
    ** package 'jsonlite' successfully unpacked and MD5 sums checked
    ** using staged installation
    Error in .read_description(dfile) :
    file 'C:/Users/Agon BESÝMÝ/AppData/Local/Temp/RtmpUVZS3l/R.INSTALL154c67e6309b/jsonlite/DESCRIPTION' does not exist
    ERROR: installing package DESCRIPTION failed for package 'jsonlite'
  • removing 'C:/R/R-4.0.2/library/jsonlite'
    Warning in install.packages :
    installation of package ‘jsonlite’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\Agon BESÝMÝ\AppData\Local\Temp\RtmpY7j6kJ\downloaded_packages’

Your help would be much appreciated!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.