[R] trouble installing R-patched (R-2.12.0) when TMPDIR is specified

Prof Brian Ripley
Mon, 18 Oct 2010 11:46:25 -0000

On Sun, 17 Oct 2010, Andrew Yee wrote:

> I noticed that if I specify the location of TMPDIR in .bashrc as follows on
> a Linux 64 bit system:
>
> export TMPDIR=/store/home/ayee/.tmp
>
> I get the following error message when installing R

'installing' or making?  Looks like the latter.

>
> make[3]: Entering directory `/home/ayee/R-patched/src/library/base'
> building package 'base'
> make[4]: Entering directory `/home/ayee/R-patched/src/library/base'
> /bin/sh: line 8: /store/home/ayee/.tmp/R24402: No such file or directory
> mv: cannot stat `/store/home/ayee/.tmp/R24402': No such file or
directory
> make[4]: *** [mkR] Error 1
> make[4]: Leaving directory `/home/ayee/R-patched/src/library/base'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/ayee/R-patched/src/library/base'
> make[2]: *** [R] Error 1
> make[2]: Leaving directory `/home/ayee/R-patched/src/library'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/home/ayee/R-patched/src'
> make: *** [R] Error 1
> [rambo:~/R-patched]$
>
> However, when I don't specify TMPDIR, it installs fine.  Any
> suggestions/comments?

Check if /store/home/ayee/.tmp exists and is writeable.  I get that
message only if it does not.  From the manual

   Ensure that the environment variable TMPDIR is either unset (and /tmp
   exists and can be written in and scripts can be executed from) or
   points to a valid temporary directory (one from which execution of
   scripts is allowed).

>
> Thanks,
> Andrew
>
> 	[[alternative HTML version deleted]]

Please do as we ask and not send HTML.

>
> ______________________________________________
> 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.
>

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595