I have the following problem (I am aware that there are many questions dealing with setting a new library path, such as Changing R default library path using .libPaths in Rprofile.site fails to work or Remove a library from .libPaths() permanently without Rprofile.site, and I have read all of them, but did not find an answer to my specific problem):
I want to avoid the dialogue box prompting me to set a personal library, because the library folder in Program Files tends to cause problems.
To do so, I set the environment variables R_LIBS and R_LIBS_USER in the Control Panel to "C:/Users/deca/Desktop/packages".
However, R still returns the Program Files library folder (both in R GUI and RStudio):
> print(.libPaths())
[1] "C:/Users/deca/Desktop/packages" "C:/Program Files/R/R-3.4.3/library"
Even worse, when trying to install new packages, R keeps asking me to set a personal folder, which is exactly what I wanted to avoid by defining R_LIBS and R_LIBS_USER.
I also tried to only select the first path via .libPaths(.libPaths()[1]), but no matter what I try R keeps both paths.
I want to only have one single folder for my packages, C:/Users/deca/Desktop/packages. How can I do this?