bcgov / ranktrends

Summarize species rankings over time based on common conservation ranking systems.
Apache License 2.0
1 stars 0 forks source link

Deal with undefined global variables #5

Closed ateucher closed 4 years ago

ateucher commented 5 years ago

When running devtools::check():

  sampled_index: no visible binding for global variable ‘data’
  sampled_index: no visible binding for global variable ‘samples’

I believe data is the generated column name when using tidyr::nest() - we should name this explicitly, and then for both that and samples (created in a mutate() call), use the .data$ pronoun: https://rlang.r-lib.org/reference/tidyeval-data.html

ateucher commented 4 years ago

Closed by #12