I am running an R CMD check using devtools::check()
for a package I am writing and I encountered the following NOTE in the check:
* checking R code for possible problems ... NOTE
prep: no visible global function definition for 'one_of'
The only place in which I use one_of
in prep()
is with this line:
raw_data <- dplyr::select(raw_data, -one_of(drop_vars))
Does anyone knows how can I solve this NOTE
?
Bellow is my DESCRIPTION
and NAMESPACE
files.
Any help would be greatly appreciated
Here is how my DESCRIPTION
file looks like:
Package: prepdat
Title: xxx
Version: 0.0.0.9000
Authors@R: person("Ayala S.", "Allon", email = "ayalaallon@gmail.com", role = c("aut", "cre"))
Description:xxx
Depends: R (>= 3.0.3)
License: GPL-3
LazyData: true
Imports: dplyr (>= 0.4.2),
reshape2 (>= 1.4.1),
psych(>= 1.5.4)
Suggests: knitr,
testthat
And here is how my NAMESPACE
file looks like
importFrom(dplyr,"%>%")
importFrom(psych,"harmonic.mean")
exportPattern("^[^\\.]")