Skip to content
Prev 11083 / 12125 Next

[R-pkg-devel] conditional import of a package?

Le 05/12/2024 ? 09:06, Adelchi Azzalini a ?crit?:
It probably means that despite your intention, there is somewhere in
your code a place where you call nloptr::some_fun() out of the
'if(requireNamespace("nloptr", quietly = TRUE)) {...}' scope.

You can try to locally uninstall nloptr, then run 'R CMD check ...' to see where it happens and why.

Best,
Serguei.