From Kurt.Hornik at wu.ac.at  Mon Jun  8 09:29:16 2009
From: Kurt.Hornik at wu.ac.at (Kurt Hornik)
Date: Mon, 8 Jun 2009 09:29:16 +0200
Subject: [Rd] CRAN build/checks: Dependencies on non-CRAN packages?
In-Reply-To: <59d7961d0906080023h443e2e23i88aa5932bfda2d05@mail.gmail.com>
References: <59d7961d0906071351l3ac15583l1a780c92c11df7a3@mail.gmail.com>
	<18988.46193.914032.842613@fangorn.hornik.net>
	<59d7961d0906080023h443e2e23i88aa5932bfda2d05@mail.gmail.com>
Message-ID: <18988.48588.186348.111974@fangorn.hornik.net>

>>>>> Henrik Bengtsson writes:

> On Sun, Jun 7, 2009 at 11:49 PM, Kurt Hornik<Kurt.Hornik at wu.ac.at> wrote:
>>>>>>> Henrik Bengtsson writes:
>> 
>>> Hi,
>>> how is the CRAN build/check system dealing with dependencies on
>>> non-CRAN packages? ?Are there external repositories that are dealt
>>> with in special ways, e.g. Bioconductor and Omegahat? ?Is this
>>> documented somewhere?
>> 
>>> The most recent note on this that I could locate is "[Rd] CRAN,
>>> Bioconductor and ctv package dependency questions", Kurt Hornik, Sept
>>> 8, 2005;
>>> https://stat.ethz.ch/pipermail/r-devel/2005-September/034547.html.
>>> Does the comments in that thread still reflect how CRAN works?
>> 
>> Not quite. ?No more special casing of BioC or Ohat dependencies: they
>> simply "work", and packages with such dependencies can fully be checked.

> Hmm... so you're saying R CMD check pass ("work") although a package
> is missing?

Are you asking what happens if a CRAN package depends on a BioC package
which is missing from BioC?

You can safely assume the availability of BioC and Ohat packages
(provided we can install these).  We do not accept packages with
unconditional (depends/imports) dependencies on package not in the
standard repositories, but do not force the availability of suggested
packages: so you can suggest an external package (but R CMD check should
still pass if the package is not available).

Best
-k

> If so, what about example/test code where that external package is
> loaded?  ...or even harder, where a function of that external package
> is called, e.g.

> require("externalPkg") || stop(...);
> res <- externalPkg::specialFcn(...);
> stopifnot(identical(res,42));
> ...

> This is not a constructed example; I do have some example():s].

> Thxs

> Henik

>> 
>> -k
>> 
>>> Thanks
>> 
>>> Henrik
>> 
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>> 
>> 


[Rd] CRAN build/checks: Dependencies on non-CRAN packages?
Kurt Hornik