Skip to content

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

5 messages · Jari Oksanen, Brian Ripley

#
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:
#
On Wed, 4 May 2005 jarioksa@sun3.oulu.fi wrote:

            
The point is that the omitted .install.macbinaries() does support 
dependencies and has several other improvements over install.binaries().
This should not be required. What does .Platform say?

  
    
#
On Wed, 2005-05-04 at 09:01 +0100, Prof Brian Ripley wrote:

            
I don't know: R fails to start again in my Mac ("The application R has
unexpectedly quit.") Re-installation and removing all .RData
and .Rhistory do not help this time either (that was the time between
receiving this message and answering now). However, it was the
R-2.1.0.dmg I got from CRAN, I started it in Mac way (clicking the
icon), it was the Mac graphical window. Further, I had checked ?options
which said that default package type in this case should be
"mac.binary". Still it wasn't, but it was "source". I didn't check
the .Platform that time, only pkgType.

It seems that I'll quit using R in MacOS X for a while, since she quits
me in the startup anyway (fortunately I have Linux as my main
environment).

cheers, jari oksanen
#
On Wed, 2005-05-04 at 09:01 +0100, Prof Brian Ripley wrote:

            
I couldn't let it be:
List of 6
 $ OS.type   : chr "unix"
 $ file.sep  : chr "/"
 $ dynlib.ext: chr ".so"
 $ GUI       : chr "AQUA"
 $ endian    : chr "big"
 $ pkgType   : chr "source"
[1] "R version 2.1.0, 2005-04-18"

(After removing R.app and R.framework, re-installing from R-2.1.0.dmg,
logging out and in -- the last step helped.)

As this is "CRAN Mac OS X build" this seems to be in conflict with
documentation of 'options' "pkgType".

PS.   

download.packages("AMORE", type="source", destdir="/tmp")

works in MacOS X (or this one I have here) with any 'type'.

cheers, jari oksanen
#
On Wed, 4 May 2005, Jari Oksanen wrote:

            
Thanks, that is the bit which is incorrect.  I now see the problem and 
have fixed it.
Good!