Skip to content
Prev 343349 / 398506 Next

"no visible binding for global variable" and with() vs. within()

I'm dealing with these type of false NOTEs as:

foo1 <- function (bar) {
   # To please R CMD check
   x <- NULL; rm(list="x")

   with(bar, {
     x })
}

Of course, that may one day break with more clever code inspections.

My $.02

/Henrik

On Fri, Aug 22, 2014 at 2:40 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote: