You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the new helpers overlaps(), closest(), between(), and within() in the join_by() function in my CRAN package. However, when I run R CMD CHECK, it generates the following NOTE:
no visible global function definition for 'closest'
Normally I would evade such a note by either importing the function into my package, prefixing the namespace, or using the .data$ pronoun. None of these are possible, as dplyr::overlaps() doesn't exist (see also #6838) , and the .data$ pronoun clearly shouldn't be used and also doesn't work.
One possible workaround is defining the helpers in globalVariables,but as Hadley noted this is a "hideous hack", and I'd prefer to avoid it if possible.
How can these helpers be used in join_by() without triggering a NOTE during CRAN checks?
The text was updated successfully, but these errors were encountered:
I'm using the new helpers
overlaps()
,closest()
,between()
, andwithin()
in thejoin_by()
function in my CRAN package. However, when I run R CMD CHECK, it generates the following NOTE:Normally I would evade such a note by either importing the function into my package, prefixing the namespace, or using the
.data$
pronoun. None of these are possible, asdplyr::overlaps()
doesn't exist (see also #6838) , and the.data$
pronoun clearly shouldn't be used and also doesn't work.One possible workaround is defining the helpers in
globalVariables
,but as Hadley noted this is a "hideous hack", and I'd prefer to avoid it if possible.How can these helpers be used in
join_by()
without triggering a NOTE during CRAN checks?The text was updated successfully, but these errors were encountered: