What's the recommended way to set the cache location for ExperimentHub for every R session?
I don't have much space in
$HOME, so at the moment I include the following in my .Rprofile
For the most part this works nicely except that it also loads several other packages, including BiocInstaller and S4Vectors. If I then run
biocLite() at some point during the session and it tries to update any of these imported packages it will fail with something like:
Package ‘S4Vectors’ version 0.17.32 cannot be unloaded: Error in unloadNamespace(package)
I then resort to starting a new
R --vanilla session to run the installation, and then switch back, but this is also a pain as
.Rprofile specifies the location of my library path too. S4Vectors in particular seems to be changing a lot in devel and I end up having to do this pretty regularly, so I was just wondering if there is some mechanism for setting the cache location without loading those packages until I want to.