Re: [Rd] CRAN package with dependencies on Bioconductor

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Fri, 10 Jun 2011 20:02:26 -0400

On 11-06-10 7:04 PM, Kornelius Rohmeyer wrote:
> I'm sorry for sending a wrongly formated mail before. This is the missing text:
>
> Dear all,
>

> for a CRAN-package that depends on another Bioconductor-package I find
> two things annoying and would like to know whether there are some
> workarounds:
>
> 1) Is there some inevitable problem that install.packages does not
> install uninstalled packages (on which the specified package depends)
> also from Bioconductor (in the correct version)?
>
> 2) In my understanding (please correct me if I'm wrong!) CRAN uses
> bioconductor packages in another version than biocLite would install.
> For example:
>
> Our package gMCP depends on the package graph that has recently
> switched to the bioconductor repositories. But even the following
> commands will fail (i.e. install incompatible versions) for R 2.12
> under Windows (and most likely MacOS):
>
> source("
http://www.bioconductor.org/biocLite.R")
> biocLite("graph")
> install.packages("gMCP")
>
> This results in errors like the following:
>
>> BonferroniHolmGraph(2)
> Error in validObject(.Object) :
> invalid class "graphMCP" object: superclass "graphBase" not defined
> in the environment of the object's class
>
> The superclass graphBase is introduced in graph 1.30. In my
> understanding the problem is that our package gMCP is build on CRAN
> for R 2.12 with the package graph in version 1.30. Unfortunately
> biocLite installs graph_1.28.0.zip for R 2.12.
>
> Are there ways to make dependencies on Bioconductor less complicated?

Users of your package are likely to have issues; make sure you document that they need to include the Bioconductor repository as well as CRAN.

You can specify a version in a dependency (or a version range). I don't know if BioC will make old versions available in binary formats, but they will probably make source versions available.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 11 Jun 2011 - 00:07:03 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 Sat 11 Jun 2011 - 06:20:18 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