-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
From Tua:
The issue: When you have an “advanced personal” computer (which is necessary in order to be at liberty to install GitHub as far as I was told), you get access to your computer’s C drive, which is otherwise locked. This is where R, Rstudio and GitHub are then installed. Also, as far as I can see, where R attempts to install packages but then somehow cannot access them when doing the library() call.
The fix: To create a local library in a not-C-drive location like so:
dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)
# Set R to use it
.libPaths(Sys.getenv("R_LIBS_USER"))
# Now reinstall the packages
install.packages("rlang", lib = Sys.getenv("R_LIBS_USER"))
install.packages("dplyr", lib = Sys.getenv("R_LIBS_USER"))
# And when calling library use this method:
library(dplyr, lib.loc = Sys.getenv("R_LIBS_USER"))Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo