R-alpha: RData in batch

Thomas Lumley thomas@biostat.washington.edu
Thu, 27 Nov 1997 09:33:37 -0800 (PST)


On Thu, 27 Nov 1997, Philippe Lambert wrote:

> Finally, I found out that running the same instructions as root work fine.
> The explanation for my computer sudden good will is not that I was root,
> but that I ran R in a different directory ... without .RData!!
> (and I don't care about .RData when I use R in batch mode!!).

This is a known and probably fixed bug.  The list of currently loaded
dynamic libraries is stored in .Dyn.libs, which is (incorrectly) saved in
.Rdata.  It should just be discarded.  A temporary fix is to add 
	.Dyn.libs<-NULL
to your start-up file.

> A second potential problem: when I build packages including personal
> functions, I use to test my functions interactively by typing
> library(mypackage) after modification of my code in an editor.
> The problem is that repeating the library load does not erase the old
> version. Do I do something wrong?

No. library() is only supposed to load a package if it hasn't already been
loaded.  This is a feature.  You can unload the package with detach() and
then reload with library().  I don't know if compiled code can be unloaded
and reloaded in the current version, though I think it is at least
planned.

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._