Dear RStudio users
I am using R.4.2.0 for windows.
After some windows updates I was no more able to install packages. I realised that RStudio had some problems in finding the paths (probably due to "ö"). So I decided to use .libPaths to change the folder of the R packages.
- It seems that I was successfull as libPath provided me the new path.
- However, there was still an error in nchar (homeDir): invalid multitypte string, element 1). Do you have any ideas do solve this error?
code
.libPaths()
[1] "C:/Rlibrary" "C:/Program Files/R/R-4.2.0/library"
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Sibylle St�ckli/Documents": Das System kann den angegebenen Pfad nicht finden
install.packages("ggplot2", dependencies = TRUE)
Installiere Paket nach ‘C:/Rlibrary’
(da ‘lib’ nicht spezifiziert)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/ggplot2_3.3.6.zip'
Content type 'application/zip' length 4122980 bytes (3.9 MB)
downloaded 3.9 MB
Paket ‘ggplot2’ erfolgreich ausgepackt und MD5 Summen abgeglichen
Die heruntergeladenen Binärpakete sind in
C:\Users\Sibylle Stöckli\AppData\Local\Temp\RtmpEjDCAw\downloaded_packages
Error in nchar(homeDir) : invalid multibyte string, element 1