[R] Re: ESS or R problem editing functions

Thomas Lumley thomas at biostat.washington.edu
Wed Jan 6 18:03:48 CET 1999


On Wed, 6 Jan 1999, Matthew Wiener wrote:

> I'm not sure whether this is a problem with ESS or R (or even a feature I
> don't understand!).
>
> Say I've got a function named f.count.these.patterns (as I do -- I'm using
> actual names in case they're somehow important).  I previously had a
> version called f.count.these.patterns.3, but discarded it because it was
> worse.  So the function is no longer there.  If I create a new version to
> compare performance using a slightly different mechanism: 
> 
> f.count.these.patterns.3 <- f.count.these.patterns,
> 
> and try to edit is (using control-c control-d), I get up *not* the
> function I just created, but an old file mcw.f.count.these.patterns.3.R
> with my old discarded version.  I can list the function correctly (typing
> its name at the R prompt), but can't seem to edit it.  If I create
> f.count.these.patterns.4 (which has never existed before), I can edit it
> without any problems. 


This is an ESS (mis?)feature.  I think it's configurable -- if so someone
will undoubtedly tell us.  ESS believes that things in files are more
reliable than things in your workspace and so will use the version in your
temporary file rather than dumping a new version.  You can certainly stop
this by deleting the temporary file, which is probably in /tmp/

	-thomas


Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list