[R] R CMD INSTALL typo?

From: Huntsinger, Reid <reid_huntsinger_at_merck.com>
Date: Fri 01 Jul 2005 - 08:24:18 EST


I recently installed R-2.1.1 and R CMD INSTALL gives me the message

mkdir: cannot create directory `': No such file or directory

before doing whatever it is supposed to do. It looks to me like the script template INSTALL.in has a typo, in line 97: (excerpt follows starting with line 93)

startdir=`${GETWD}`
: ${TMPDIR=/tmp}
{ tmpdir=`(mktemp -d -q "${TMPDIR}/R.INSTALL.XXXXXX") 2>/dev/null` \

    && test -n "${tmpdir}" && test -d "${tmpdir}" ; } ||
{ test -n "${RANDOM}" && tmp=${TMPDIR}/R.INSTALL$$-${RANDOM} \

      && (${MKDIR_P} "${tmpdir}") ; } ||
{ tmpdir=${TMPDIR}/R.INSTALL.$$ && (${MKDIR_P} "${tmpdir}") ; } ||
  (error "cannot create temporary directory" && exit 1) tmpdir=`cd "${tmpdir}" && ${GETWD}`

where the "tmp=" midway through should I think be "tmpdir=". Making that change solved the problem. I didn't see the problem mentioned anywhere so thought I should point it out and make sure I'm not breaking something.

Reid Huntsinger



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 01 08:29:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:08 EST