[R] change location of temporary files
William Dunlap
wdunlap at tibco.com
Fri Feb 23 22:55:43 CET 2018
Does setting the environment variable TMPDIR, before starting R,
to a directory on a bigger file system help? On Linux I get
% mkdir /tmp/RTMP-BILL
% env TMPDIR=/tmp/RTMP-BILL R --quiet --vanilla
> tempdir()
[1] "/tmp/RTMP-BILL/Rtmppgowz4"
> tempfile()
[1] "/tmp/RTMP-BILL/Rtmppgowz4/file7ce36ec5cb1e"
I don't know if there is an R-specific environment variable or startup
flag for this.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Feb 23, 2018 at 10:52 AM, Kumar Mainali <kpmainali at gmail.com> wrote:
> I would like to change where R stores the temporary files to my external
> hard drive in my iMac. This is important because the temporary files R
> creates are huge and I do not have enough available space in my internal
> HD. Again, this is for macOS.
>
> This change has to be temporary. Later I need to use the usual location for
> temp files in the internal HD.
>
> Thanks in advance,
> Kumar Mainali
>
> --
> Postdoctoral Associate
> Department of Biology
> University of Maryland, College Park
> ᐧ
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list