Skip to content
Prev 11077 / 12125 Next

[R-pkg-devel] [External] Re: Confusing error

Thank you [and Josiah Parry] for your help; I had already seen that PracTools uses `survey` but only suggests it, and I was unsure what to do on my end since I was getting in trouble whether I imported it or not. I will try doing what you suggest.

Since the call to PracTools::deffCR is essential to this package, I will do the second suggestion.

Best,
Aaron

From: Duncan Murdoch <murdoch.duncan at gmail.com>
Date: Monday, December 2, 2024 at 3:48?PM
To: Cohen, Aaron <cohenaa at iu.edu>, r-package-devel at r-project.org <r-package-devel at r-project.org>
Subject: Re: [External] Re: [R-pkg-devel] Confusing error
The PracTools::deffCR function calls survey::svydesign.  It only
suggests the survey package, so it is not necessarily available.

What you could do is also suggest survey, then add a test for its
presence before calling PracTools::deffCR.  Or if that call is
essential, then you should import survey, and add some innocuous direct
reference to it to quiet the NOTE.

Duncan Murdoch
On 2024-12-02 3:38 p.m., Cohen, Aaron wrote: