[R] How do I set the Windows temporary directory in R?
doon75 at hotmail.com
Wed Mar 18 13:42:02 CET 2009
As far as I know setwd() does not influence where temporay files (TMPDIR,
TMP, TEMP) are located - at least not for me on windows vista.
As mentioned before setting environment variable should work.
Also I carry R on a USB, so I don't want temporary files being written to
the PC / laptop where I connect or downloaded packages for that matter.
I use a Renviron.site file to make sure files are saved where I want them
(Renviron.site sits in the "etc" folder of the R install files).
and contains the following specifications (this works for me but can't
guarantee it is good / recommended practice - for example I need to change
directory "M" to match where I plug USB in ) and I created the folders
specified, I don't know if R will create them if it doesn't find them:
stephen sefick wrote:
> I don't have a windows machine to work on, but this should work.
> On Tue, Mar 17, 2009 at 10:14 PM, andrew <andrewjohnroyal at gmail.com>
>> On Mar 18, 12:42 pm, Jonathan Greenberg <greenb... at ucdavis.edu> wrote:
>>> I'm trying to redirect where temporary files go under R to
>>> D:\temp\somerandomname from its default (C:\Documents and
>>> Settings\username\Temp\somerandomname) -- how do I go about doing this?
>>> Jonathan A. Greenberg, PhD
>>> Postdoctoral Scholar
>>> Center for Spatial Technologies and Remote Sensing (CSTARS)
>>> University of California, Davis
>>> One Shields Avenue
>>> The Barn, Room 250N
>>> Davis, CA 95616
>>> Cell: 415-794-5043
>>> AIM: jgrn307, MSN: jgrn... at hotmail.com, Gchat: jgrn307
>>> R-h... at r-project.org mailing
>>> PLEASE do read the posting
>>> and provide commented, minimal, self-contained, reproducible code.
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> Stephen Sefick
> Let's not spend our time and resources thinking about things that are
> so little or so large that all they really do for us is puff us up and
> make us feel like gods. We are mammals, and have not exhausted the
> annoying little problems of being mammals.
> -K. Mullis
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/How-do-I-set-the-Windows-temporary-directory-in-R--tp22571428p22578321.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help