Search notes:

R function: .libPaths

.libPaths() gets or sets the library trees within which packages are looked for.
> for (l in .libPaths()) cat(l, '\n')
/usr/local/lib/R/site-library
/usr/lib/R/site-library
/usr/lib/R/library

Index