Hello, This may not be a bug--but I'm not sure. I have R 1.91 installed on a machine that's running Windows XP. In Cygwin, when I attempt to use the "build" command it tells me that TMPDIR is set to an invalid directory. See the results below: stat20:/cygdrive/d/dirk/bands/implementation -> which r /cygdrive/d/Programs/R/rw1091/bin/r stat20:/cygdrive/d/dirk/bands/implementation -> r CMD build --help Please set TMPDIR to a valid temporary directory stat20:/cygdrive/d/dirk/bands/implementation -> r CMD build validate Please set TMPDIR to a valid temporary directory stat20:/cygdrive/d/dirk/bands/implementation -> echo $TMPDIR TMPDIR: Undefined variable. stat20:/cygdrive/d/dirk/bands/implementation -> echo $TMP /cygdrive/c/DOCUME~1/sego/LOCALS~1/Temp stat20:/cygdrive/d/dirk/bands/implementation -> echo $TEMP /cygdrive/c/DOCUME~1/sego/LOCALS~1/Temp What is TMPDIR? How can I set it? I've installed Perl as well as the extra binary files (make.exe, etc.) needed to build and install libraries under Windows (not that they're related to this problem...) Any suggestions would be much appreciated. Thanks, Landon Sego _________________________________________ Landon Sego Department of Statistics Virginia Tech 414 Hutcheson (540) 231-2144
sego@vt.edu writes:> Hello, > > This may not be a bug--but I'm not sure.In that case you should not submit a bug report. Someone will have to clean up after you.> I have R 1.91 installed on a > machine that's running Windows XP.And the current year is approx. 2045... (1.9.1 is the current version)> In Cygwin, when I attempt to use the > "build" command it tells me that TMPDIR is set to an invalid directory. > See the results below:It is saying that TMPDIR is not set to a valid directory, which is not quite the same thing. It would appear that it is not set at all.> stat20:/cygdrive/d/dirk/bands/implementation -> which r > /cygdrive/d/Programs/R/rw1091/bin/r > > stat20:/cygdrive/d/dirk/bands/implementation -> r CMD build --help > Please set TMPDIR to a valid temporary directory > > stat20:/cygdrive/d/dirk/bands/implementation -> r CMD build validate > Please set TMPDIR to a valid temporary directory > > stat20:/cygdrive/d/dirk/bands/implementation -> echo $TMPDIR > TMPDIR: Undefined variable. > > stat20:/cygdrive/d/dirk/bands/implementation -> echo $TMP > /cygdrive/c/DOCUME~1/sego/LOCALS~1/Temp > > stat20:/cygdrive/d/dirk/bands/implementation -> echo $TEMP > /cygdrive/c/DOCUME~1/sego/LOCALS~1/Temp > > What is TMPDIR? How can I set it?A temporary directory. "export TMPDIR=$TMP" would be a guess if you're using bash. Otherwise, however you normally set environment variables. Did you read the INSTALL and README.packages files? In particular there seems to be a couple of gotchas involved when running under Cygwin. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
My apologies for CC'ing to r-bugs@r-project.org. No doubt it created extra work for someone. With regard to this problem: stat20:/cygdrive/d/dirk/bands/implementation -> r CMD build --help Please set TMPDIR to a valid temporary directory I fixed it by setting a variable TMPDIR in Windows (right-clicked on "My Computer", then clicked on "Properties", "Advanced", "Environment Variables" and then set new variable called "TMPDIR".) Having done that, "r CMD build" works in Cygwin. _________________________________________ Landon Sego Department of Statistics Virginia Tech 414 Hutcheson (540) 231-2144