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
Sys.which("make")
make
"C:\R\rtools40\usr\bin\make.exe"
install.packages("jsonlite", type = "source")
trying URL 'https://cran.rstudio.com/src/contrib/jsonlite_1.7.0.tar.gz'
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!
Goni