This is the first one: C:\Program Files\R\R-3.4.1\library
There is another one: C:\Users\Asus\Documents\R\win-library\3.4
I installed R all by default. Some packages are in the first library and some are in the second one.
By default, R use a system library where base packages are installed and a user library where packages are installed.
It is all defined in .libPaths()
which is used by default by lib
arg in install.packages
(see help file) The first element of .libPaths()
is used as default path for installing package. All paths are used to look for a package when you load them with library()
with first path priority.
On my system, which is windows too, I have the same as you :
Documents
folder of my user. you can see libPath help page here (or type ?.libPaths()
in console) for how to tweek the default behaviour with environment variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With