0

After installing a certain package, the package is not loadable via library("stm"). It says it doesn't exist. I think the intallation directory is not the same as when using the library function. Anyone knows how to fix this?

thanks in advance

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214

1 Answers1

1

You can view (and edit) the location of your libraries with .libPaths(). Here is the documentation.

If you use library(), it will output all packages installed in your current library path.

mhovd
  • 3,724
  • 2
  • 21
  • 47
  • Adding to this, you can ask R to always use a custom library by having `.libPaths( "/user/Ryp/your-library" )` in your .RProfile. – mhovd Dec 12 '19 at 09:00