Skip to content

Developer work cycle

1 message · Hin-Tak Leung

#
Jos? Luis Aznarte M. wrote:
typo... happier with this below? Both of them (same "/tmp") is
an alternative installed location, not source location.

R CMD INSTALL -l /tmp mypackage

library(mypackage, lib.loc="/tmp")

I don't think you can do 'library(mypackage, lib.loc="/tmp")' twice
(with a re-install in the middle), if that's what you are thinking.
I think you need to do detach(package:mypackage) at least,
and even then, windows's dll loader gets very confused. I believe
I had managed to crash R by dyn.load()'ing two object files of the
same name twice under wine, so I am not sure it is a good idea.

I read somewhere that object files are never unloaded, but you'll need 
to hear it from the R experts...

HTL