[Rd] Conditional "Suggests"

Hadley Wickham hadley at rice.edu
Mon Apr 11 22:23:32 CEST 2011


On Mon, Apr 11, 2011 at 1:34 PM, Geoff Jentry <geoffjentry at hexdump.org> wrote:
> Hi ...
>
> I came across an old post on R-devel that describes a situation very similar
> to one I find myself in:
> https://stat.ethz.ch/pipermail/r-devel/2006-December/043917.html
>
> As you can see in Gregor's example, the situation is that if I am writing
> Pkg A, I want to detect if Pkg B exists - if so use some functionality from
> there, otherwise do something else.
>
> To me this reads as being in the wheelhouse of what 'Suggests' is supposed
> to imply, as per the R Extensions manual.  The problem here is that if PkgB
> is put down as 'Suggests', it is required for R CMD check to pass which
> seems to defeat the purpose of this exercise a bit.

No, because R CMD check is only run by the developer, not the user.

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-devel mailing list