[Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

From: Steve Lianoglou <mailinglist.honeypot_at_gmail.com>
Date: Thu, 08 Sep 2011 15:59:18 -0400


Essentially: subject line says it all.

I've created a package that wraps an external c++ library (which I didn't write) that only successfully compiles on 64bit machines.

I'd like to make the package broadly available, but is there a way to get it on CRAN if the 32-bit builds break by specifying its 64-bit only somehow?

Luckily, I've ./configure'd my R-devel-compiled-from-source to only build x86_64 libs, so I can develop and install my package against that, but trying to `R CMD INSTALL mypackage` using the official R binaries breaks since it also tries to build a 32-bit *.so (I'm on a mac).

I see hints in how to limit which architecture a package is built against in the R-ext and R-admin manuals where they seem to suggest to include a src/Makefile in order to do that ... but I'm not sure what I should put in it.

name="0526qlink3"> name="0526qlink3"><a name="0526qlink3">Is it possible to limit the build architecture by putting something in my src/Makevars instead of trying to engineer an entire Makefile since "the normal build process" works just fine (except this whole architecture thing)?

Even if it can't go on CRAN as 64-bit only, it would be great if I can put up some easy install instructions for people to d/l my source package externally and use it that way.



Steve Lianoglou
Graduate Student: Computational Systems Biology

 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact ______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 08 Sep 2011 - 20:09:53 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 08 Sep 2011 - 20:50:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive