Reputation: 8127
When I run library(MASS)
I get the following error in R Studio:
Error in FUN(X[[i]], ...) :
cannot open file 'C:/Users/User/Documents/R/win-library/3.3/MASS/data/Rdata.rdb': No such file or directory
Yet it loads fine if I run the command in base R.
I can confirm as per the error message that the file (and the data folder) do not exist. But I've tried re-installing the MASS package (with apparent success) and it still doesn't appear to work.
I'm running R v3.3.1 both in base and in R Studio.
Upvotes: 1
Views: 1612
Reputation: 2577
If it's not too burdensome, try removing RStudio and removing the RStudio-Desktop directory
https://support.rstudio.com/hc/en-us/articles/200554736-How-To-Uninstall-RStudio
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State
After reinstalling RStudio, try importing MASS.
Upvotes: 3