Error: Token not valid!
DanielIAvila opened this issue · 1 comments
DanielIAvila commented
I am trying to access IUCN Red List through the API without a success. I have tried the code below to run some preliminary settings and I get a result Error: Token not valid!
install.packages("rredlist")
library(rredlist)
Sys.setenv(IUCN_REDLIST_KEY = "API-TOKEN")
species_info <- rl_search('Panthera leo')
print(species_info)
My working environment:
sessionInfo()
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_Sweden.utf8 LC_CTYPE=English_Sweden.utf8 LC_MONETARY=English_Sweden.utf8 LC_NUMERIC=C LC_TIME=English_Sweden.utf8
time zone: Europe/Stockholm
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rredlist_0.7.1 remotes_2.5.0 ggridges_0.5.6 treemapify_2.5.6 colorspace_2.1-0 viridis_0.6.5 viridisLite_0.4.2 wordcloud_2.6 RColorBrewer_1.1-3 knitr_1.45 cowplot_1.1.3 gtable_0.3.4 gridExtra_2.3
[14] ggforce_0.4.2 ggpubr_0.6.0 lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_3.5.0 tidyverse_2.0.0 tidytext_0.4.1
loaded via a namespace (and not attached):
[1] tidyselect_1.2.1 farver_2.1.1 urltools_1.7.3 tweenr_2.0.3 janeaustenr_1.0.0 timechange_0.3.0 lifecycle_1.0.4 sf_1.0-16 tokenizers_0.3.0 magrittr_2.0.3 compiler_4.3.3 rlang_1.1.3 tools_4.3.3
[14] utf8_1.2.4 ggsignif_0.6.4 labeling_0.4.3 bit_4.0.5 classInt_0.4-10 curl_5.2.1 abind_1.4-5 KernSmooth_2.23-22 httpcode_0.3.0 withr_3.0.0 triebeard_0.4.1 grid_4.3.3 polyclip_1.10-6
[27] fansi_1.0.6 e1071_1.7-14 scales_1.3.0 MASS_7.3-60.0.1 crul_1.4.2 cli_3.6.2 crayon_1.5.2 generics_0.1.3 rstudioapi_0.15.0 tzdb_0.4.0 DBI_1.2.2 proxy_0.4-27 parallel_4.3.3
[40] vctrs_0.6.5 Matrix_1.6-5 jsonlite_1.8.8 carData_3.0-5 car_3.1-2 hms_1.1.3 bit64_4.0.5 rstatix_0.7.2 units_0.8-5 glue_1.7.0 stringi_1.8.3 munsell_0.5.0 pillar_1.9.0
[53] ggfittext_0.10.2 R6_2.5.1 vroom_1.6.5 lattice_0.22-6 backports_1.4.1 SnowballC_0.7.1 broom_1.0.5 class_7.3-22 Rcpp_1.0.12 xfun_0.42 pkgconfig_2.0.3
willgearty commented
Please refer to #52.