Dependencies + namespacing discipline
Defaults
- Prefer
pkg::funin package code (clear provenance, fewer NAMESPACE surprises). - Use
Importsfor runtime dependencies;Suggestsfor tests, vignettes, optional features. - Avoid broad imports (
@import) unless there’s a strong reason.
Quick checks
devtools::check()
Common gotchas
- Using
dplyr/rlang/purrrfunctions without namespacing causesR CMD checkNOTES/ERRORS. - Tests can use helpers from
Suggests, but production code must not.