Problem installing some packages and updates - User Folder name related


I've been having a few problems installing some packages/updates in R Studio. The following error seems to come up consistently

Fatal error: cannot open file 'C:\Users\Lawrence': No such file or directory

ERROR: lazy loading failed for package 'rmarkdown'

Now, my Windows 10 user folder name actually has a space between my first (Lawrence) and last name. Is this known to be a problem when installing packages?

Yes it is, R doesn't like empty spaces and non ASCII characters on the libPath, a quick walk around would be to install on the system wide library folder, try something like this but change the R version accordingly to your actual setup

install.packages("tidyverse", lib = "C:\\Program Files\\R\\R-3.6.1\\library")
1 Like

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