ropensci / taxa

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

Another tutorial error #142

Closed lindsayveazey closed 6 years ago

lindsayveazey commented 6 years ago

R version 3.4.3 (2017-11-30) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] taxa_0.2.0.9118

loaded via a namespace (and not attached): [1] Rcpp_0.12.15 withr_2.1.1 digest_0.6.15 dplyr_0.7.4 assertthat_0.2.0 R6_2.2.2
[7] jsonlite_1.5 magrittr_1.5 pillar_1.1.0 rlang_0.2.0 bindrcpp_0.2 devtools_1.13.5 [13] tools_3.4.3 glue_1.2.0 yaml_2.1.16 compiler_3.4.3 pkgconfig_2.0.1 memoise_1.1.0
[19] bindr_0.1 knitr_1.20 tibble_1.4.2

(x <- taxon(
+   name = taxon_name('Poa annua'),
+   rank = taxon_rank('species'),
+   id = taxon_id(93036),
+   authority = 'Linnaeus'))
<Taxon>
Error in private$get_name() %||% "none" : object 'private' not found # Strange error when  () added around function
zachary-foster commented 6 years ago

Sorry about that. I just introduced that bug when trying to fix another one. It will be gone soon. Thanks for the report!

zachary-foster commented 6 years ago

Should be fixed. Want to reinstall and check?

lindsayveazey commented 6 years ago

library(taxa) (x <- taxon(

  • name = taxon_name('Poa annua'),
  • rank = taxon_rank('species'),
  • id = taxon_id(93036),
  • authority = 'Linnaeus'))
name: Poa annua rank: species id: 93036 authority: Linnaeus # ^ output looks good, well done and thanks! @ewbarba