Hello, thank you for getting back to me. I have a github with the code:

https://github.com/237triangle/surveynnet

The main code is in R/surveynnet.R.

Re: your suggestion, do you mean I should de-install the survey package? I will 
try that, but would appreciate any additional help in the meantime so I’m 
linking my github above.

Best,
Aaron

From: Duncan Murdoch <murdoch.dun...@gmail.com>
Date: Monday, December 2, 2024 at 3:09 PM
To: Cohen, Aaron <cohe...@iu.edu>, r-package-devel@r-project.org 
<r-package-devel@r-project.org>
Subject: [External] Re: [R-pkg-devel] Confusing error
[You don't often get email from murdoch.dun...@gmail.com. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

This message was sent from a non-IU address. Please exercise caution when 
clicking links or opening attachments from external sources.


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

        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to