how to solve "no visible binding for global variable" note?

You can put the following R code somewhere in your package, perhaps an R/globals.R script.

utils::globalVariables(c("prob", "section", "y"))
13 Likes