nsn
nsn

Reputation: 193

R complains about permissions when installing librarys. Where is R instaling packages?

I am updating bioclite as an ordinary user, from inside R. I want R to update Biooclite in my personal library folder. I get a permission error. It doens't make sense since I have read/write permissions here.

How can I see where R is trying to install my librarys?

Upvotes: 0

Views: 57

Answers (1)

plannapus
plannapus

Reputation: 18749

In install.packages there is an argument lib that controls where the packages are installed. By default it picks the first element of .libPaths(), see ?install.packages:

lib
character vector giving the library directories where to install the packages. Recycled as needed. If missing, defaults to the first element of .libPaths().

Upvotes: 1

Related Questions