Skip to content
Prev 49223 / 63424 Next

OSX Yosemite (10.10): Are package binaries the same as for OSX Mavericks (10.9)?

On Mon, Oct 27, 2014 at 12:33 PM, Dan Tenenbaum <dtenenba at fredhutch.org> wrote:
I considered that, but I'm also asking this as a package developer and
wonder what happens if someone installs my packages incorrectly and I
need to troubleshoot what's reported as a bugs but may not be, so I
though it would be more appropriate here.
Just for the record: I've verified that it is not possible to install
the Mavericks build of R on a pre-Mavericks OSX version by mistake; on
an OSX 10.6.8 machine I get:

$ wget http://r.research.att.com/mavericks/R-3.1-branch/R-3.1-branch-mavericks.pkg
$ sudo installer -pkg R-3.1-branch-mavericks.pkg -target "/"
...
installer: This build of R requires Mac OS X 10.9 or higher.
$
I understand that packages without native code should work, but is
there a reason for why R and install.packages() allows such mix and
matching in the first place?  I've tested
install.packages("matrixStats", type="mac.binary.mavericks") on an OSX
10.6.8 machine and it install the package without complaints.
Wouldn't it be better then if it gave an error:
Installing package into '/Users/hb/Library/R/3.1/library'
(as 'lib' is unspecified)
Error in install.packages("matrixStats", type = "mac.binary.mavericks") :
  cannot install Mavericks binary packages on this platform

cf. install.packages("matrixStats", type = "win.binary")?
Thanks for your answers they helped me a lot.

/Henrik