Skip to content

[Bioc-devel] how to create my own repository of mac os x binaries?

2 messages · Paul Shannon, Seth Falcon

#
My still-in-development bioc package, gaggle, needs a slew
of bioc packages to run:  Ruuid,  graph, rJava at a minimum,
GO, GOstats, RBGL, annotate, xtable, multtest to do more
interesting work.

I wish to build binaries for my mac users, and put them
in a local repository -- at least until the bioc 1.8 mac
binaries are available.

I made a few naive attempts to create such a repository.
In my last attempt,

    1) I built the binaries on a mac
    2) moved them to <package-base>/bin/macosx/powerpc/contrib/2.3/
    3) rebuilt the repository (using repos tools).

This didn't work:  install.packages could find source
packages in this repository, but not the binaries.

Can anyone help me out of my muddle here?  Perhaps point
me towards some instructions explaining the directory
structures and techniques used to provide binary packages
in a repository?

Thanks!

  - Paul
#
Hi Paul,

Paul Shannon <pshannon at systemsbiology.org> writes:
When you say "using repos tools", can you give us a bit more detail?
I'm afraid you may be using the deprecated reposTools package. 

To create the control files that install.packages and friends will
look for, you want the write_PACKAGES function which is in the tools
package (comes with R).
A CRAN-style repository (that's what you want) looks like this:

some_root/-
           |
           - src/contrib/
           |             |
           |             - PACKAGES 
           |             |
           |             - *.tar.gz packages here
           |
           - bin/
                 |
                 - windows/contrib/2.3/
                 |                     |
                 |                     - PACKAGES
                 |                     |
                 |                     - *.zip packages here
                 |
                 - macosx/ppc/contrib/2.3/
                                          |
                                          - PACKAGES
                                          |
                                          - *.tgz packages here



+ seth