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-boun...@r-project.org] On Behalf Of Kumar Mainali
Sent: Friday, February 23, 2018 1:53 PM
To: R Help <r-help@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@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.
______________________________________________
R-help@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.

Reply via email to