[R-pkg-devel] Suggested package relies on recent R

David Hugh-Jones d@vidhughjone@ @ending from gm@il@com
Sat Dec 8 15:41:03 CET 2018


Thanks guys. If CRAN already sets FORCE_SUGGESTS = false, then I think I
don't have a problem.
David


On Sat, 8 Dec 2018 at 14:36, Duncan Murdoch <murdoch.duncan using gmail.com>
wrote:

> On 08/12/2018 9:28 AM, Hadley Wickham wrote:
> > Can you just set _R_CHECK_FORCE_SUGGESTS_=false?
> >
> > env:
> >    global:
> >    # don't treat missing suggested packages as error
> >    - _R_CHECK_FORCE_SUGGESTS_=false
> >
> > I am reasonably certain that is what CRAN uses.
>
> Also make sure that examples fail gracefully if the suggested package is
> not present, i.e. wrap uses of the suggested package in
>
> if (requireNamespace(...)) { ... }
>
> Duncan Murdoch
>
>
> >
> > Hadley
> >
> > On Fri, Dec 7, 2018 at 9:11 AM David Hugh-Jones
> > <davidhughjones using gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> My package Suggests a package that relies on R >= 3.5.0. My package
> works
> >> fine with earlier R, though. When travis runs R CMD check on R-oldrel,
> >> therefore, it fails because it can't install the suggested package.
> >>
> >> Is this going to stop me submitting to CRAN? I don't really want to
> require
> >> R 3.5.0 just to satisfy an optional dependency.
>
>
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list