[R-pkg-devel] no visible global function definition

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Jun 29 17:46:46 CEST 2015



On 29.06.2015 11:10, Daniel Lüdecke wrote:
> Hello,
>
> I'm doing my package check for CRAN, in order to see whether submitting the
> package-update passes all checks.
> I'm doing the tests under Windows 7, using R-Version "R Under development
> (unstable) (2015-06-28 r68602)".
>
> Now I got a quite long list of NOTEs, which are probably no problem,
> however, I would like to fix these issues, if possible.
>
> It seems that all base and/or stats function now produce a note concering
> the visible global function definition. Here's a short example of my output
> from my package check:
>
> sjp.grpfrq: no visible global function definition for 'sd'
> sjp.grpfrq: no visible global function definition for 'plot'
> sjp.int: no visible global function definition for 'sd'
> sjp.int: no visible global function definition for 'quantile'
> sjp.int: no visible global function definition for 'plogis'
> sjp.likert: no visible global function definition for 'xtabs'
> sjp.likert: no visible binding for global variable 'offset'
> sjp.likert: no visible global function definition for 'plot'
> sjp.lm: no visible global function definition for 'coef'
> sjp.lm: no visible global function definition for 'coefficients'
> sjp.lm: no visible global function definition for 'confint'
> sjp.lm.eff: no visible global function definition for 'model.matrix'
>
> Do I have to import all these namespaces now? I'm using RStudio with
> roxygen, so I would add an @importFrom stats <function_x_y> where necessary
> - but is this the new requirement as of R >= 3.3?

Yes. And it should have been a requirement before, I believe.

Best,
Uwe Ligges


>
> Best wishes
> Daniel
>
>
>
>
> --
>
> _____________________________________________________________________
>
> Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | www.uke.de
> Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Prof. Dr. Dr. Uwe Koch-Gromus, Joachim Prölß, Rainer Schoppik
> _____________________________________________________________________
>
> SAVE PAPER - THINK BEFORE PRINTING
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



More information about the R-package-devel mailing list