From hadley at rice.edu  Mon Apr 11 22:23:32 2011
From: hadley at rice.edu (Hadley Wickham)
Date: Mon, 11 Apr 2011 15:23:32 -0500
Subject: [Rd] Conditional "Suggests"
In-Reply-To: <Pine.LNX.4.64.1104111128300.9064@cardinals.dreamhost.com>
References: <Pine.LNX.4.64.1104111128300.9064@cardinals.dreamhost.com>
Message-ID: <BANLkTinTW_eSHahN3+a+MKON4XJ_MMeT3A@mail.gmail.com>

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/



[Rd] Conditional "Suggests"
Hadley Wickham