[R] Removal of temp files in R 1.60 with xgobi - reversable?
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Wed Oct 9 08:40:35 CEST 2002
The issue seems to me that you are using the temporary directory for
files which you don't want to be temporary. Answer: don't use the
temporary directory!
xgobi(keep=TRUE) keeps files after the xgobi() function terminates, but
only for the duration of the R session. So you can easily copy them
somewhere permanent. If that isn't sufficient for you, alter the
following line in the xgobi function:
dfile <- tempfile(paste(fprefix, abbreviate(gsub("[^A-Za-z0-9]",
"", title), 5), sep = ""))
not to use tempfile.
On Tue, 8 Oct 2002, Harry Mangalam wrote:
> From the NEWS file for R 1.60:
>
> Each R session uses a per-session temporary directory which
> is removed at normal termination. The directory name is given
> by the tempdir() function, and filenames returned by
> tempfile() will be within that directory.
>
> Is there any way to maintain these temporary files? I use R to generate output
> files that are viewable with the xgobi package which has a 'keep' option to
> maintain temporary files, but this seems to be overridden in R itself.
>
> It worked OK with R up to 1.51, I think.
>
> I'd actually like to be able to specify the entire temp directory as well since
> I have to generate this directory anyway.
>
>
> --
> Cheers, Harry
> Harry J Mangalam - 949 856 2847 (v&f) - hjm at tacgi.com (primary)
> <<plain text much appreciated>>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley at 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-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