Skip to content

ESS or R problem editing functions

3 messages · Matthew Wiener, Thomas Lumley, Peter Dalgaard

#
Hi, all.

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. 

So I guess I need to know how to make mcw.f.count.these.patterns.3.R go
away.  I thought that the R command rm(f.count.these.patterns.3.R) would
take care of whatever needed to be done.

I'm using R version 0.63 and ESS-5.1 on an SGI with plenty of memory.

Thanks for any help,

				Matt Wiener


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Wed, 6 Jan 1999, Matthew Wiener wrote:

            
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Matthew Wiener <mcw at ln.nimh.nih.gov> writes:
...
ESS isn't smart enough to track changes made to objects in R, but
still tries to reuse old buffers (which I suspect *is* useful
sometimes).

If you find yourself in an outdated buffer, just 

C-x k (kill buffer)

and then C-c C-d again