[R] change location of temporary files

Sariya, Sanjeev ss5505 at cumc.columbia.edu
Fri Feb 23 23:33:44 CET 2018


You can set this in script as:

library("unixtools ")
set.tempdir("/home/path_to_dir/temp_dir/")

--
Sanjeev 

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Kumar Mainali
Sent: Friday, February 23, 2018 1:53 PM
To: R Help <r-help at r-project.org>
Subject: [R] change location of temporary files

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.


More information about the R-help mailing list