Skip to content
Prev 16080 / 63424 Next

MacOS X: update.packages(type="mac.binary") fails (PR#7836)

Message 2 of today: it works now.

After re-installing R.app from the same R-2.1.0.dmg file, and
fixInNamespace'ing(*) install.packages(), I managed to update 23
outdated packages from CRAN binaries for MacOS X. What I did was to:

1. change call to .install.macbinaries() into call to install.binaries()
in install.packages(). install.binaries() is a function defined
utils/R/aqua/GUI.R. 
2. I also had to remove argument 'dependencies' since that is not
defined in install.binaries() of utils/aqua. 

It seems that install.binaries of utils/aqua is mentioned in several
places in R sources, but .install.macbinary() appears only in one place,
so changing install.packages() is less hassle than changing
utils/R/aqua/GUI.R and all other places (although this looks more
natural). 

This still requires a fix in passing type in update.packages() that B.
Ripley already did for R 2.1.1, or setting 
options(pkgType="mac.binary").

cheers, jari oksanen

(*) "Object-oriented programming is an exceptionally bad idea which
could only have originated in California." E. Dijkstra
On Tue, 2005-05-03 at 16:14 +0100, Prof Brian Ripley wrote: