How to change default user library path for packages

I've got a user that for some reason is getting a different library path then everyone else. I tried a windows profile refresh, but the settings seemed to follow.

I'm trying to figure out how to change the packages directory for a single user from there "home drive" to a shared drive on the shared environment

You can change the defaul library path by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file

# For example on Windows would be
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.2\\library"

But have in mind that very often, R has troubles with shared drives.

where do I Find the .reviron or .rprofile file?

This article explains the use of startup files

Thanks. I think I was looking at this problem from the wrong angle. I'll setup a new support

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.