[R] How is the binding for a super assignment made visible?

Gabor Grothendieck ggrothendieck at gmail.com
Tue Sep 2 18:33:31 CEST 2008


You could try using an assign statement instead:

assign("Globals", list(), .GlobalEnv)

and see if it complains about that or not.

On Mon, Sep 1, 2008 at 10:01 PM,  <morphwj at comcast.net> wrote:
> The statement Globals <<- list() in the body of a function in a package was intended to write an empty list to the R workspace to collect results during the computations of the function.  A package name space has not been specified.
>
> The package appears to function correctly, but
>
> during the R CMD check of the package while "checking R code for possible problems ... NOTE",
>
> no visible binding for '<<-' assignment to 'Globals' is displayed.
>
> Can you tell in this case why the binding needs to be visible?  What statement might do that?  A specific reference in the R manuals would be appreciated.
>
> Bill Morphet
> ATK Space Systems, Launch Systems, Nozzle Structural Analysis
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list