Skip to content
Prev 12073 / 12125 Next

[R-pkg-devel] R CMD check false positive unused imports inside R6 class

I suspect that's due to a difference of running the check on the built
package vs. on the package sources:

tools:::.check_packages_used(dir = ".") # nothing
tools:::.check_packages_used(package = <pkg>)
# Namespaces in Imports field not imported from:
#   ?R6? ?stats?
#   All declared Imports should be used.

Mike C

On Thu, Feb 12, 2026 at 2:53?PM Michael Chirico <michaelchirico4 at gmail.com>
wrote: