6

I continue to get the following R CMD check (via devtools::check()) for a package I am preparing to submit to CRAN (you can see the results for the package here:

Check: dependencies in R code 
Result: NOTE 
    Namespace in Imports field not imported from: ‘tidyr’
     All declared Imports should be used. 

The source code for the package is here on GitHub. I've removed any mention of tidyr or its functions throughout the package, but the note remains. There are a number of Stack Overflow questions (i.e., this and other resources on this, but none seem to apply to this situation. How can I address this note?

| |
  • 3
    Look a little harder at your DESCRIPTION file. – Dirk Eddelbuettel Jan 28 '18 at 15:16
  • Ugh, still don't see it! – Joshua Rosenberg Jan 28 '18 at 15:26
  • Are you testing the repository or the tarball ? I can't tell---I have uploaded packages to CRAN for 15+ years without these additional obfuscation tools. Worked for me, but hey, it's a big tent. – Dirk Eddelbuettel Jan 28 '18 at 16:25
  • 1
    As I said, for the last fifteen years I have relied on R CMD ... tools (and simple wrappers/aliases I wrote) which works for me. Maybe try that instead of devtools. Or maybe it is something else. But R sees it used somewhere. – Dirk Eddelbuettel Jan 28 '18 at 16:48
  • 2
    Something doesn't add up. The "CRAN Package Check Results" are for the current version of the package on CRAN. That version (0.1.0) includes "Imports: tidyr" in the DESCRIPTION file, which causes the NOTE. But I don't see how that's relevant to your question. The package you uploaded (version 0.2.0) doesn't include "Imports: tidyr" in the DESCRIPTION file, so it wouldn't generate a NOTE. So the actual issue is completely unclear. – Joshua Ulrich Jan 28 '18 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.