Message-ID: <CAL3ufUJBpBqZS4paDwYBYw6-3a3R054Pkt=_A8bqNgMB7d=k_Q@mail.gmail.com>
Date: 2024-12-02T20:45:48Z
From: Josiah Parry
Subject: [R-pkg-devel] Confusing error
In-Reply-To: <8ca3efa8-b68d-4c87-a756-b5816e06174c@gmail.com>
My guess is that one of your packages uses survey as a Suggested package.
And your calling a function from that package that uses survey via
Suggests.
Is your package on GitHub? Or could you share your Imports?
On Mon, Dec 2, 2024 at 12:09 Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> On 2024-12-02 11:38 a.m., Cohen, Aaron wrote:
> > Hello,
> >
> > I am trying to submit an R package to CRAN. There are no notes, comments
> or errors when checking on my local machine, but I keep getting an error
> message when submitting. I am attaching the log file, but basically the
> error occurs when running the examples. In particular, it says
> >
> > Error in loadNamespace(x) : there is no package called 'survey'
> >
> > However, my package does not use the ?survey? package, and when I
> include this package to the Imports field in the DESCRIPTION file, it gives
> the following NOTE:
> >
> > checking dependencies in R code ... NOTE
> > Namespace in Imports field not imported from: ?survey?
> > All declared Imports should be used.
> >
> >
> > How do I resolve this issue?
> >
>
> I'd remove the survey package on your system, and try running the
> example that fails. If you get the same error, you can track it down.
>
> Duncan Murdoch
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
[[alternative HTML version deleted]]