[Rd] Re: R-WinEdt (PR#959)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 31 May 2001 10:45:15 +0200 (MET DST)


On Thu, 31 May 2001 ligges@statistik.uni-dortmund.de wrote:

> John Maindonald wrote:
> >
> > Hello Uwe -
> > I have been making some use of R-WinEdt.  I have just installed
> > version 1.3.  For the most part it works fine.  An annoyance is
> > however that when I type in data(), Windows comes up with an error
> > message such as
> >
> > File c:\windows\TEMP\R.5346 not found.
> >
> > This happened with the earlier version also, which is why I
> > upgraded.  It happens under Windows ME at home as well
> > as under Windows 98 at work.  I am running R for windows 1.23
> >
> > I suspect there is some simple action I can take to allow
> > data() to work, but it is not clear to me what.
>
>
> This is not a bug of R-WinEdt, but of R, so also a copy to R-Bugs.
>
> The problem happens, if you set  pager != internal  in options(), e.g.:
>   options(pager = "notepad")
>
> After that,  data()  results in an error message like yours:
>    File c:\windows\TEMP\R.5346 not found
>
> The real error occurs in show.data() [or on.exit() ?]:
>
> If you comment out the line
>     on.exit(file.remove(file))
> in the function show.data(), showing the file works as expected, but
> results in not deleting the temp-files.

That line is no longer in the sources.


> file.show(file, delete.file = TRUE)  also doesn't delete the file.

Right. That's because there is no way to know when e.g. notepad has
finished with the file.  Actually, one maybe could with notepad,
but not with multi-file editors like pfe (or winedt?)

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


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