Skip to content
Prev 12076 / 12125 Next

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

I reckon it was just written before R6 and could go for a patch:
https://gitlab.com/luke-tierney/codetools

Point taken about masking. Working from memory (CMIIW) you can just import
and name from stats to satisfy the static analysis:

importFrom(stats, setNames)

R doesn't do two-way "include what you use" checks to insure the names you
import are actually used.

Mike C

On Thu, Feb 12, 2026, 11:33?PM Bjarke Hautop <bjarke.hautop at gmail.com>
wrote: