"R CMD INSTALL foreign_x.x.x.tar.gz" generates an error. However it can be installed if we do manually like untar the package, configure and use a command such as "R CMD INSTALL foreign". Reproducible: Always Steps to Reproduce: 1.Install R-2.5.0 2.Run "R CMD INSTALL foreign_0.8-20.tar.gz 3. Actual Results: * Installing to library '/home/lab/hakjin/R/library' * Installing *source* package 'foreign' ... /usr/lib/R/bin/INSTALL: ./configure: /bin/sh: bad interpreter: Permission denied ERROR: configuration failed for package 'foreign' ** Removing '/home/lab/hakjin/lib/R/foreign' ** Restoring previous '/home/lab/hakjin/lib/R/foreign' Expected Results: The package should have been installed.
This looks like some sort of an permission issue. Are you attempting to install the add on package as your user or as root? Thanks, Markus
This is not an permission issue at all, but most likely the default way R informs that the package is already installed. Since we use the option --with-recommended-packages (defaults to yes), the foreign-package is always included in the base Gentoo "emerge dev-lang/R"-installation. The same thing applies to other core R-packages (may change between versions, but usually e.g. boot, cluster, lattice, MASS, and so on). I suggest closing this bug.
I may have been a little hasty with my comments. Nevertheless, I can not reproduce this. 1. chroot / # whoami root 2. emerge =dev-lang/R-2.5.0 3. wget http://cran.cybermirror.org/src/contrib/foreign_0.8-20.tar.gz 4. chroot / # R CMD INSTALL foreign_0.8-20.tar.gz 5. all fine. Any chance you have /tmp mounted as noexec?
Any news regarding this issue? Thanks, Markus
Does this persist with the current R-2.6.0-r1? If it does have you tried installing the package using the install.packages() command from within R (when running as root of course)?
Unable to reproduce this, as others in the bug, and no news from original poster. Closing as WONTFIX. Re-open if the problem happens in >=R-2.6.1-r1