Hello everyone,
I am a first time R user in dire need of some help.
I have tried to get started with R and Rstudio for a few days now, but something seems to be wrong. Namely, I can't seem to be able to install any packages, at least they won't show up in the packages pane.
When I open Rstudio, I receive 2 reoccurring messages in the console:
Error in nchar(homeDir) : invalid multibyte string, element 1
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Lenovo/OneDrive HNEE/OneDrive - Hochschule f�r nachhaltige Entwicklung Eberswalde/Documents": The system cannot find the path specified
From researching my problem, I understand that Rstudio has trouble with both non-ASCII characters and OneDrive-synced folders. The folder in question would have a "ü" in the file path (where the "?" is), which I can not change due to it being the name of my university, and it is just the name of the OneDrive folder by default.
In order to circumvent this, I have completely unsynced and even uninstalled OneDrive from my computer, but the message still keeps showing up.
I have also tried to set the home directory and library location to a non-synced folder on my desktop, which has only ASCII-characters in its location.
I have tried that via the Globel Settings in Rstudio, by editing the Rprofile.site file and by creating an .Rprofile file in the base of my home directory, since one did not appear on its own.
In the last two, I added the following command:
.First <- function(){
.libPaths(c("C:/Users/Lenovo/Desktop/NonSyncedFolder/R_HOME/library"))
}
All to no avail. I still get the previously mentioned Error and Warning messages and can not seem to install any packages.
I really am at my wits' end here and any help would be much appreciated.