You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
── R CMD check results ──────────────────────────────────────────────────────────────────────────── weird 0.1.0 ────
Duration: 7.8s
❯ checking dependencies in R code ... NOTE
Namespace in Imports field not imported from: ‘dplyr’
All declared Imports should be used.
0 errors ✔ | 0 warnings ✔ | 1 note ✖
The text was updated successfully, but these errors were encountered:
What you are noticing is behaviour, admittedly sort of unexpected and quirky, of R CMD check, not of devtools::check(). So it's not something we will or can fix.
There are ways to suppress this NOTE, which I've recorded here (and this was a good nudge for us to include this content in the R Packages book):
Using
{devtools}
version 2.4.4..Assume a vanilla package (no Imports whatsoever in
DESCRIPTION
) with only one source R file with one function only:devtools::check()
will be oblivious to the dependency on{dplyr}
:If I try to include this dependency, then I get:
The text was updated successfully, but these errors were encountered: