ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

Warn users initializing `taxmap` with data that has same name as a function #78

Closed zachary-foster closed 7 years ago

zachary-foster commented 7 years ago
> x$map_data(names, counts)
 Show Traceback

 Rerun with Debug
 Error in (function (unparsed)  : 
  The value `names` is not named by taxon id or contains invalid ids. Use `taxon_ids()` to see the valid ids. Use `warn = FALSE` to ignore this. 

This was caused by the names function being grabbed by NSE instead of the names data