Gábor Csárdi
2009-Sep-04 19:42 UTC
[R] Running R on read-only file system, without temporary directory
Dear All, I would like to do run R without having write permissions to any directory on the system. It seems that I need to modify the R source code for this, to make R start without creating a temporary directory. So far, so good. But should I expect any more complications? Does R really need the temporary directory that much? Thanks, Gabor -- Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM
Duncan Murdoch
2009-Sep-05 00:05 UTC
[R] Running R on read-only file system, without temporary directory
On 04/09/2009 3:42 PM, G?bor Cs?rdi wrote:> Dear All, > > I would like to do run R without having write permissions to any > directory on the system. It seems that I need to modify the R source > code for this, to make R start without creating a temporary directory. > > So far, so good. But should I expect any more complications? Does R > really need the temporary directory that much?Many R functions create temporary files in it. (There are around 20 calls to tempfile() and another 20 to tempdir() in the base R sources, if my quick grep was right. I've no idea how many calls there are from contributed packages.) Would R work if these all failed? I don't know, but I'd guess it wouldn't work very well. Duncan Murdoch
Gabor Grothendieck
2009-Sep-05 00:26 UTC
[R] Running R on read-only file system, without temporary directory
If you are willing to do a bit of work you could look into linking R to an embedded file system in RAM -- maybe whefs. On Fri, Sep 4, 2009 at 3:42 PM, G?bor Cs?rdi<csardi at rmki.kfki.hu> wrote:> Dear All, > > I would like to do run R without having write permissions to any > directory on the system. It seems that I need to modify the R source > code for this, to make R start without creating a temporary directory. > > So far, so good. But should I expect any more complications? Does R > really need the temporary directory that much? > > Thanks, > Gabor > > -- > Gabor Csardi <Gabor.Csardi at unil.ch> ? ? UNIL DGM > > ______________________________________________ > R-help at r-project.org mailing list > 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. >