geanders / futureheatwaves

Functions to Identify and Characterize Heatwaves in Climate Projections
3 stars 0 forks source link

Determine cause for notes on visible bindings #83

Closed geanders closed 8 years ago

geanders commented 8 years ago

NOTES from the local build check:

acquireDirectoryStructure: no visible binding for global variable
  ‘model’
acquireDirectoryStructure: no visible binding for global variable ‘ens’
acquireDirectoryStructure: no visible binding for global variable
  ‘check_1’
acquireDirectoryStructure: no visible binding for global variable
  ‘check_2’
acquireDirectoryStructure: no visible binding for global variable
  ‘check_3’
acquireDirectoryStructure: no visible binding for global variable
  ‘type’
apply_hw_projections: no visible global function definition for
  ‘mutate’
apply_hw_projections: no visible binding for global variable ‘city’
apply_hw_projections: no visible binding for global variable
  ‘start.date’
apply_hw_projections: no visible binding for global variable ‘end.date’
createHwDataframe: no visible binding for '<<-' assignment to ‘hold’
createHwDataframe: no visible binding for global variable ‘hw’
createHwDataframe: no visible binding for '<<-' assignment to
  ‘bloodhound’
createHwDataframe: no visible binding for '<<-' assignment to ‘bark’
createHwDataframe: no visible binding for global variable ‘hw.number’
createHwDataframe: no visible binding for global variable ‘tmpd’
map_grid: no visible binding for global variable ‘long’
map_grid: no visible binding for global variable ‘long_grid’
map_grid: no visible binding for global variable ‘model’
map_grid: no visible binding for global variable ‘lat’
map_grid: no visible binding for global variable ‘group’
map_grid: no visible binding for global variable ‘lat_grid’
process_cities_file: no visible binding for global variable ‘city’
process_cities_file: no visible global function definition for
  ‘matches’
geanders commented 8 years ago

For the ones that are coming from using dplyr and friends, see:

http://stackoverflow.com/questions/9439256/how-can-i-handle-r-cmd-check-no-visible-binding-for-global-variable-notes-when/12429344#12429344

and

https://cran.r-project.org/web/packages/dplyr/vignettes/nse.html

geanders commented 8 years ago

Changing from non-standard evaluation to standard evaluation worked for the ones related to dplyr, etc. (see second link in previous comment)