Skip to content

Instantly share code, notes, and snippets.

@gederajeg
Last active June 29, 2025 15:47
Show Gist options
  • Select an option

  • Save gederajeg/fdc3b9a743f74768ae39a0d42e6e4db1 to your computer and use it in GitHub Desktop.

Select an option

Save gederajeg/fdc3b9a743f74768ae39a0d42e6e4db1 to your computer and use it in GitHub Desktop.
Update .libPaths() in .Rprofile

The solution to default the .libPaths() in the main .Rprofile.

My .Rprofile consists of this code

.libPaths(c("C:/Users/GRajeg/AppData/Local/R/win-library/4.3", 
            "C:/Users/GRajeg/AppData/Local/Programs/R/R-4.5.0/library", 
            "C:/Program Files/R/R-4.3.1/library"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment