From thomas@biostat.washington.edu  Thu Nov 27 17:33:37 1997
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Thu, 27 Nov 1997 09:33:37 -0800 (PST)
Subject: R-alpha: RData in batch
In-Reply-To: <Pine.OSF.3.96.971127103915.13153A-100000@alpha>
Message-ID: <Pine.SOL.3.95.971127092638.7075A-100000@gorn>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-alpha: RData in batch
Thomas Lumley