[R-pkg-devel] Undocumented code objects: '.__global__'

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Jul 21 09:47:52 CEST 2023


On Fri, 21 Jul 2023 09:43:49 +0200
Johannes Ranke <johannes.ranke using jrwb.de> wrote:

> * checking for missing documentation entries ... WARNING
> Undocumented code objects:
>   '.__global__'
> 
> I don't understand where this code object '__global__' may come from.

It's an implementation detail of utils::globalVariables(). Normally, R
CMD check wouldn't complain about it, but because of exportPattern(".")
in your NAMESPACE it's exported, and thus considered to be a part of
your package's API, and thus required to be documented.

It may involve more typing, but export()ing individual functions will
prevent your package from exporting some other non-API object by
accident.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list