...
User local package installations directories are typically under the user's ~/R directory (e.g. /stor/home/<user_name>/R). If a user has installed packages under multiple versions of R, there will be sub-directories for the different versions (e.g. ~/R/x86_64-pc-linux-gnu-library/3.46, ~/R/x86_64-pc-linux-gnu-library/34.60). Users can list the contents of these directories to see what packages they have installed locally.
To see what packages are installed system-wide for a given R version, users can look at the version's package installation directories:
- R 3.4.4 (Ubuntu 18.04 only)
- /usr/lib/R/library
- /usr/lib/R/site-library
- R 3.6.1 (Ubuntu 18.04 only) – /stor/system/opt/R/R-3.6.1/lib/R/library
- R 3.6.3 (Ubuntu 20.04 only)
- /usr/lib/R/library
- /usr/lib/R/site-librar
- R 4.0.3 – /stor/system/opt/R/R-4.0.3/lib/R/library
...
Code Block |
---|
mv ~/R ~/R.bak |
If this resolves the issueproduces a different error indicating that one or more locally installed packages are missing, the user may later find that they need to re-install other packages that were previously installed locally (check can re-install them then see if the problem is resolved. Check the now-named ~/R.bak/x86_64-pc-linux-gnu-library/3.x directory, where x is the R version being used to see the packages that were locally installed packages).If this produces a different error indicating that one or more locally installed packages are missing, the user can re-install them then see if the problem is resolved.previously. Even if this resolves the immediate issue, the user may later find that they need to re-install other packages that were previously installed locally.
Finally, if renaming the local R installation directory does not resolve the issue, it may be an issue with the globally installed packages, so Contact Us.
...
Code Block |
---|
mv ~/.rstudio ~/.rstudio.bak mv ~/.RData ~/.RData.bak mv ~/.local/share/rstudio ~/.local.rstudio.bak |
Note that .RData files may be in different directories. For example, if you a working in an R Project you have set up, there may be an .RData file in the project directory.
...