Skip to content

[?] update.packages() - Linux

1 message · Brian Ripley

#
Mike Meyer solved this on 24 Jan:

   Date: Wed, 24 Jan 2001 13:48:53 -0800
   From: "Michael M. Meyer" <mikem at salter-point.com>
   
   install.packages want to run
      cmd <- paste(file.path(R.home(), "bin", "R")
   (which on my system is /usr/lib/R/bin/R).
   
   Unfortunately ( and this is R 1.2.1, installed from the rpm on CRAN) 
   that shell script has /var/tmp/R-base-root/usr/lib/R hard coded as the 
   R_Home.
   
   Here is the diff between /usr/bin/R and /usrlib/R/bin/R.
   
   ->meyer<-:/usr/lib/R/bin> diff /usr/lib/R/bin/R /usr/bin/R
   4c4
   < R_HOME_DIR=/var/tmp/R-base-root/usr/lib/R
   ---
   > R_HOME_DIR=/usr/lib/R
   
   A "quick" fix is to cp /usr/bin/R to /usr/lib/R/bin/R


Follow the thread in the R-help archives if you want to know more.