Closed boshek closed 6 years ago
I think my rational was that I import only when really really necessary (and I only used @import lubridate to get at %within%, but if you know how to reference a special function directly, lubridate::%within%
?? I'd love to do that instead).
So I didn't want to use import lubridate everywhere, only when the function was referenced. No strong feelings either way, except I'd rather not use @import at all.
Turns out I didn't truly understand that the @import
associated with a particular function applied to the whole package (I thought it applied only to the function in question). I've fixed all imports to either be explicit (i.e. lubridate::`%within%`(x, y)) or central (i.e. put in the help.R file, as you suggested).
Fixed with e418cdd7ffac95c08f16552b30c289b3b09ccfaf
From goodpractices::gp(): Do not import packages as a whole, as this can cause name clashes between the imported packages. Instead, import only the specific functions you need.