Every time R is upgraded, I have to reinstall the packages I use (from sources,so they have to be recompiled for the new version). This is a correct, understandable behavior, so I invoke install.packages - and get an error because the user-writable directory "~/R/%p-library/%v" does not exist yet and all the other directories in .libPaths() are under /usr/ and are not user-writable. This behavior is documented in the referenced pages.
So, after getting the install error, I have to do this:
> dir.create(Sys.getenv("R_LIBS_USER"))
> .libPaths(Sys.getenv("R_LIBS_USER"))
> install.packages(c("igraph","entropy",...))
My question is: how do people deal with this issue?
Create the directory by hand after each upgrade? (but isn't that tedious?)
Add the dir.create call to .Rprofile? (apparently not)
EDIT: I seem to recall that, when I started to use R, this library directory appeared without my action; but I might be wrong...