[R] R CMD INSTALL typo?

Huntsinger, Reid reid_huntsinger at merck.com
Fri Jul 1 00:24:18 CEST 2005


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




More information about the R-help mailing list