Thanks Jenny! Just the advice I was looking for. On Mon, Aug 10, 2015 at 4:40 PM, Jennifer Bryan <je...@stat.ubc.ca> wrote:
> Hi Jonathan, > > Re: this note: no visible binding for global variable ‘datetime’ > > In programming and packages, it is recommended to use special versions of > dplyr’s single table verbs, e.g., use `filter_()` as opposed to `filter()`. > Note the underscore. The “underscore” functions use standard evaluation > instead of non-standard evaluation. This vignette contains more details: > > https://cran.rstudio.com/web/packages/dplyr/vignettes/nse.html > > HTH, > Jenny > > > On Aug 10, 2015, at 3:35 PM, Jonathan Callahan < > jonat...@mazamascience.com> wrote: > > > > Greetings, > > > > I'm using dplyr inside of another package with examples like this: > > > > data <- dplyr::filter(data, datetime >= trange[1], datetime <= trange[2]) > > > > > > When I run my package through R CMD check I get the following NOTES: > > > > monitorSubsetData: no visible binding for global variable ‘datetime’ > > > > > > I already have dplyr listed in the package Depends: section of the > > DESCRIPTION. > > > > I'm also encountering > > > > no visible global function definition for ‘matches’ > > > > > > when I try to use the dplyr internal function matches(). > > > > Is there any way to allow for dplyr syntactic sugar inside of my package > or > > do I need to be pedantic and say data$datetime in the first example and > > dplyr::matches in the second? (Will dplyr::matches even work when it is > not > > an exported function?) > > > > Thanks, > > > > Jon > > > > -- > > Jonathan Callahan, PhD > > Mazama Science > > 206-708-5028 > > mazamascience.com > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-package-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > -- Jonathan Callahan, PhD Mazama Science 206-708-5028 mazamascience.com [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel