Hi, I am trying to submit a package to CRAN built using nimble. It generates warnings like so: : no visible global function definition for 'nimDim' and fails automatic checks by CRAN. Any help is appreciated. Thanks and regards, Aritra
[R-pkg-devel] Warnings and notes while building package with nimble
4 messages · Halder,Aritra, Lluís Revilla, Dirk Eddelbuettel +1 more
1 day later
Hi Aritra, It would be helpful if we can explore the package source code. It helps to provide a more accurate answer. But you will find some other cases on the archive of the mailing list with similar messages. The message indicates that the static code analyzer hasn't detected the definition of the object but detected it is used. This is often the case if you use subset, within or dplyr, ggplot2, data.table or other packages that use delayed evaluation. To solve it, it might be as simple as writing nimDim <- NULL inside your package or there might be a real issue there. Best, Llu?s
On Sat, 5 Apr 2025 at 18:25, Halder,Aritra <ah3758 at drexel.edu> wrote:
Hi,
I am trying to submit a package to CRAN built using nimble. It generates
warnings like so:
: no visible global function definition for 'nimDim'
and fails automatic checks by CRAN. Any help is appreciated.
Thanks and regards,
Aritra
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
On 6 April 2025 at 01:25, Llu?s Revilla wrote:
| To solve it, it might be as simple as writing nimDim <- NULL inside your
| package or there might be a real issue there.
Or call utils::globalVariables(c("nimDim")) where, if needed, you could add
to that argument vector any other variables listed as global.
Cheers, Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
1 day later
On 05.04.2025 00:29, Halder,Aritra wrote:
Hi, I am trying to submit a package to CRAN built using nimble. It generates warnings like so:
Which package?
: no visible global function definition for 'nimDim'
and you have not forgot to import nlmDim()? Best, Uwe Ligges
and fails automatic checks by CRAN. Any help is appreciated. Thanks and regards, Aritra [[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel