Howdy everyeone, I think I misunderstood how suggests works. I always thought they would ble available on CRAN but not necessarily on the end users computer. I've fixed everything and will resubmit it this weekend.
Thank you both Ivan and Lluís. This was helpful. John On Fri, Jun 2, 2023 at 12:18 AM Lluís Revilla <lluis.revi...@gmail.com> wrote: > Dear John, > > I think the problem is that the package ggPMX is suggested, but > nlmixr2rpt isn't prepared for when it isn't available. > In such cases, a package shouldn't fail the checks. > > From the CRAN policies > https://cran.r-project.org/web/packages/policies.html : > "A package listed in ‘Suggests’ or ‘Enhances’ should be used > conditionally in examples or tests if it cannot straightforwardly be > installed on the major R platforms. (‘Writing R Extensions’ recommends > that they are always used conditionally.)" > > Among other things in the file test-rptnlmixr.R you load several > suggested packages without checking if they are available. > You should only run those tests and examples that need those packages > if they are available. > Checking via: if (requireNamespace("ggPMX", verbose = FALSE) could be > enough > > There's also an example that seems to be failing, I didn't understand > the reason behind it but it might be related. > > Best, > > Lluís > > > On Fri, 2 Jun 2023 at 02:49, John Harrold <john.m.harr...@gmail.com> > wrote: > > > > Hello, > > > > I recently got a "Dear Maintainer" email from Brian Ripley. It was > > concerning the nlmixr2rpt package I maintain: > > > > https://cran.r-project.org/web/checks/check_results_nlmixr2rpt.html > > > > It looks like there is an error on r-release-linux-x86_64 that is causing > > it. If I'm reading that correctly there is a problem finding ggPMX on > that > > flavor. If I look at the check results for ggPMX it seems to be building > > fine there: > > > > https://cran.r-project.org/web/checks/check_results_ggPMX.html > > > > Am I reading that correctly that ggPMX not being found is the cause of my > > issues? If that's the case and it seems to be present now, can I just > wait > > and let CRAN machines find it? Or should I just resubmit with those > pieces > > removed from the version I submit to CRAN? > > > > -- > > Thank you, > > John > > :wq > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-package-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > -- John :wq [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel