Skip to content

add to the FAQ #56

@lwjohnst86

Description

@lwjohnst86

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions