I have been having trouble loading my libraries in R studio. It started when a package that was supposedly loaded did not open.
Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
cannot open file '\isad.isadroot.ex.ac.uk/UOE/User/R/win-library/4.0/rlang/R/rlang.rdb': Invalid argument
I am using a work computer. I have done the following sequentially without getting any success:
- installed the latest R version and re-started a new R studio session. I tryed by using installr and then installed manually.
- remove.packages("ggplot2");install.packages("ggplot2") and re-start a session
- re-install all packages
- install tidyverse (as it comprises ggplot2 if I understood correctly) and try to load it
- copying the R folder to my C: and changed the folder directory
This error appeared too
Attaching package: ‘dplyr’
The following object is masked from ‘package:nlme’:
The following objects are masked from ‘package:stats’:
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
This error message runs endlessly and made Rstudio crash
Error: package or namespace load failed for ‘lme4’ in get(Info[i, 1], envir = env):
cannot open file '\isad.isadroot.ex.ac.uk/UOE/User/R/win-library/4.0/Rcpp/R/Rcpp.rdb': Invalid argument
Failed with error: ‘package ‘lme4’ could not be loaded’
Error in .requirePackage(package) :
unable to find required package ‘blme’
Loading required package: blme
Loading required package: lme4
Could anyone please help me with this?