Hi, I believe I've encountered a bug in the do_install function in the
script used by R CMD INSTALL. I'm using R 2.8.0 under OS X 10.5.5. I was
trying to install a package from source (the package gaga which I maintain,
which I checked and builds correctly for R 2.8.0) when I get the error
message

* Installing to library '/Users/drossell/Desktop/R-2.8.0/library'
/Users/drossell/Desktop/R-2.8.0/bin/INSTALL: line 950: cd:
/Volumes/biostats/projects/routines/R/gaga
/Volumes/biostats/projects/routines/R/gaga: No such file or directory
sed: DESCRIPTION: No such file or directory
ERROR: no 'Package' field in 'DESCRIPTION'

I get this same error for any other package that I try to install.

Upon debugging the script, I've found that the script is trying to cd to
"/Volumes/biostats/projects/routines/R/gaga\n/Volumes/biostats/projects/routines/R/gaga".
That is, the directory is repeated twice, which causes the installation to
fail. To temporarily fix the bug I commented out the 1st two lines in the
do_install function and manually specified the directory. After doing this
the package installs just fine.

#  cd "${1}"
#  pkg_dir="${1}"
  cd "/Volumes/biostats/projects/routines/R/gaga"   #line added
  pkg_dir="/Volumes/biostats/projects/routines/R/gaga" #line added

Thanks,

David

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to