r-quantities/units

no visible binding for global variable ‘degree_C’ - CRAN check note

iembry opened this issue · 1 comments

In my iemisc package, I am using your units package.

This is an example of how I am using the set_units function:

T <- 20

set_units(T, "degree_C")

Upon checking iemisc with devtools for CRAN submission, I receive the following note under "checking R code for possible problems":

no visible binding for global variable ‘degree_C’

Please tell me how to avoid that note in my R packages.

Thank you.

Irucka

Checks ensure that you don't use a variable that wasn't defined, so provide degrees as a string, as you did here, instead of using non-standard evaluation, and you won't receive that note.

And sorry to be blunt, but this is an issue tracker for the units package, and you are describing an issue in yours. The r-package-devel mailing list is the proper place to ask for help about packaging issues.