How-To: Rstudio: List Library Paths

Summary

List library paths for Rstudio for current project.

Body

Question

How do I list the library paths that are being used in my project?

 

Answer

1. In Rstudio, in Console pane, enter ".libPaths()".  Returns current configured library paths.  When using the recommended Renv package, the first listed path should begin with "c:\Users\%username%\". 

 

Rstudio window with Console pane, .libpaths() command highlighted

For information on the best practices for setting library paths, see the article: Informational: Best Practices for Library Paths in RStudio

For information on the best practices for managing portable libraries, see the article: Informational: Best Practices for Managing Portable Libraries and Packages in Rstudio

Details

Details

Article ID: 2332
Created
Tue 4/28/26 9:57 AM
Modified
Fri 5/29/26 11:24 AM