[Bioc-devel] Windows Development Build Error Message for COHCAP

Hervé Pagès hp@ge@ @end|ng |rom |redhutch@org
Thu Apr 23 21:22:43 CEST 2020


Hi Charles,

On 4/23/20 10:19, Charles Warden wrote:

> My guess was that creating the temporary file in the working directory instead of another folder might help.

FWIW here are 2 important reasons for writing temporary stuff to 
tempdir() instead of the current working directory:

1. tempdir() is the only place that is guaranteed to be writable on 
every system. Yes the user home is very likely to be writable too but 
there is actually no guarantee and some systems have unconventional 
setups where it's not.

2. Whatever you put in tempdir() will automatically be removed at the 
end of the R session. Even though there are ways to achieve this with 
the temporary stuff you write in the user home, it's not automatic and 
hard to get right.

Cheers,
H.

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages using fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



More information about the Bioc-devel mailing list