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

Johannes Ranke joh@nne@@r@nke @end|ng |rom jrwb@de
Fri Jul 21 14:40:30 CEST 2023


Am Freitag, 21. Juli 2023, 09:47:52 CEST schrieb Ivan Krylov:
> 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.

Thanks, Ivan, for your insightful coment!

Specifying exports in the NAMESPACE file solved it.

Kind regards,

Johannes



More information about the R-package-devel mailing list