diff -Nru r-cran-rredlist-0.6.0/debian/changelog r-cran-rredlist-0.7.0/debian/changelog --- r-cran-rredlist-0.6.0/debian/changelog 2020-05-31 05:55:02.000000000 +0000 +++ r-cran-rredlist-0.7.0/debian/changelog 2020-11-06 10:42:57.000000000 +0000 @@ -1,8 +1,10 @@ -r-cran-rredlist (0.6.0-2build1) groovy; urgency=medium +r-cran-rredlist (0.7.0-1) unstable; urgency=medium - * No-change rebuild against r-api-4.0 + * New upstream version + * debhelper-compat 13 (routine-update) + * Testsuite: autopkgtest-pkg-r (routine-update) - -- Graham Inggs Sun, 31 May 2020 05:55:02 +0000 + -- Andreas Tille Fri, 06 Nov 2020 11:42:57 +0100 r-cran-rredlist (0.6.0-2) unstable; urgency=medium diff -Nru r-cran-rredlist-0.6.0/debian/control r-cran-rredlist-0.7.0/debian/control --- r-cran-rredlist-0.6.0/debian/control 2020-05-19 08:08:48.000000000 +0000 +++ r-cran-rredlist-0.7.0/debian/control 2020-11-06 10:42:57.000000000 +0000 @@ -2,8 +2,9 @@ Maintainer: Debian R Packages Maintainers Uploaders: Andreas Tille Section: gnu-r +Testsuite: autopkgtest-pkg-r Priority: optional -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), dh-r, r-base-dev, r-cran-crul, diff -Nru r-cran-rredlist-0.6.0/DESCRIPTION r-cran-rredlist-0.7.0/DESCRIPTION --- r-cran-rredlist-0.6.0/DESCRIPTION 2020-01-28 06:10:03.000000000 +0000 +++ r-cran-rredlist-0.7.0/DESCRIPTION 2020-10-29 08:30:02.000000000 +0000 @@ -4,7 +4,7 @@ Description: 'IUCN' Red List () client. The 'IUCN' Red List is a global list of threatened and endangered species. Functions cover all of the Red List 'API' routes. An 'API' key is required. -Version: 0.6.0 +Version: 0.7.0 Authors@R: c(person(given = "Scott", family = "Chamberlain", @@ -20,22 +20,22 @@ ) License: MIT + file LICENSE URL: https://github.com/ropensci/rredlist (devel) - https://docs.ropensci.org/rredlist (docs) + https://docs.ropensci.org/rredlist/ (docs) BugReports: https://github.com/ropensci/rredlist/issues Encoding: UTF-8 Language: en-US Imports: crul (>= 0.3.8), jsonlite (>= 1.1) Suggests: testthat, vcr (>= 0.4.0) -RoxygenNote: 7.0.2 +RoxygenNote: 7.1.1 X-schema.org-applicationCategory: Biodiversity X-schema.org-keywords: IUCN, biodiversity, API, web-services, traits, habitat, species, conservation X-schema.org-isPartOf: https://ropensci.org NeedsCompilation: no -Packaged: 2020-01-28 01:04:55 UTC; sckott +Packaged: 2020-10-28 21:40:31 UTC; sckott Author: Scott Chamberlain [aut, cre], rOpenSci [fnd] (https://ropensci.org/), Maƫlle Salmon [ctb] Maintainer: Scott Chamberlain Repository: CRAN -Date/Publication: 2020-01-28 06:10:03 UTC +Date/Publication: 2020-10-29 08:30:02 UTC diff -Nru r-cran-rredlist-0.6.0/man/rl_common_names.Rd r-cran-rredlist-0.7.0/man/rl_common_names.Rd --- r-cran-rredlist-0.6.0/man/rl_common_names.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_common_names.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -34,5 +34,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_comp_groups.Rd r-cran-rredlist-0.7.0/man/rl_comp_groups.Rd --- r-cran-rredlist-0.6.0/man/rl_comp_groups.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_comp_groups.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -40,5 +40,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_countries.Rd r-cran-rredlist-0.7.0/man/rl_countries.Rd --- r-cran-rredlist-0.6.0/man/rl_countries.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_countries.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -32,5 +32,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_growth_forms.Rd r-cran-rredlist-0.7.0/man/rl_growth_forms.Rd --- r-cran-rredlist-0.6.0/man/rl_growth_forms.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_growth_forms.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -57,5 +57,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_habitats.Rd r-cran-rredlist-0.7.0/man/rl_habitats.Rd --- r-cran-rredlist-0.6.0/man/rl_habitats.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_habitats.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -55,5 +55,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_history.Rd r-cran-rredlist-0.7.0/man/rl_history.Rd --- r-cran-rredlist-0.6.0/man/rl_history.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_history.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -49,5 +49,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_measures.Rd r-cran-rredlist-0.7.0/man/rl_measures.Rd --- r-cran-rredlist-0.6.0/man/rl_measures.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_measures.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -52,5 +52,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_narrative.Rd r-cran-rredlist-0.7.0/man/rl_narrative.Rd --- r-cran-rredlist-0.6.0/man/rl_narrative.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_narrative.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -52,5 +52,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_occ_country.Rd r-cran-rredlist-0.7.0/man/rl_occ_country.Rd --- r-cran-rredlist-0.6.0/man/rl_occ_country.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_occ_country.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -50,5 +50,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_regions.Rd r-cran-rredlist-0.7.0/man/rl_regions.Rd --- r-cran-rredlist-0.6.0/man/rl_regions.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_regions.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -33,5 +33,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_search.Rd r-cran-rredlist-0.7.0/man/rl_search.Rd --- r-cran-rredlist-0.6.0/man/rl_search.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_search.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -49,5 +49,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_sp_citation.Rd r-cran-rredlist-0.7.0/man/rl_sp_citation.Rd --- r-cran-rredlist-0.6.0/man/rl_sp_citation.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_sp_citation.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -52,5 +52,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_sp_count.Rd r-cran-rredlist-0.7.0/man/rl_sp_count.Rd --- r-cran-rredlist-0.6.0/man/rl_sp_count.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_sp_count.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -32,5 +32,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_sp_country.Rd r-cran-rredlist-0.7.0/man/rl_sp_country.Rd --- r-cran-rredlist-0.6.0/man/rl_sp_country.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_sp_country.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -43,5 +43,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_synonyms.Rd r-cran-rredlist-0.7.0/man/rl_synonyms.Rd --- r-cran-rredlist-0.6.0/man/rl_synonyms.Rd 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_synonyms.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -35,5 +35,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rl_threats.Rd r-cran-rredlist-0.7.0/man/rl_threats.Rd --- r-cran-rredlist-0.6.0/man/rl_threats.Rd 2020-01-28 00:23:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rl_threats.Rd 2020-10-14 22:43:16.000000000 +0000 @@ -53,5 +53,5 @@ } } \references{ -API docs at \url{http://apiv3.iucnredlist.org/api/v3/docs} +API docs at https://apiv3.iucnredlist.org/api/v3/docs } diff -Nru r-cran-rredlist-0.6.0/man/rredlist-package.Rd r-cran-rredlist-0.7.0/man/rredlist-package.Rd --- r-cran-rredlist-0.6.0/man/rredlist-package.Rd 2020-01-28 00:33:43.000000000 +0000 +++ r-cran-rredlist-0.7.0/man/rredlist-package.Rd 2020-10-14 22:41:34.000000000 +0000 @@ -4,9 +4,9 @@ \name{rredlist-package} \alias{rredlist-package} \alias{rredlist} -\title{rredlist - IUCN Red List Client} +\title{rredlist} \description{ -rredlist - IUCN Red List Client +IUCN Red List R Client } \section{Taxonomic Names vs. IUCN IDs}{ @@ -21,7 +21,7 @@ IUCN requires you to get your own API key, an alphanumeric string that you need to send in every request. See key A IUCN API token. See \code{\link[=rl_use_iucn]{rl_use_iucn()}} for help getting and storing it. Get it at -\url{http://apiv3.iucnredlist.org/api/v3/token} +https://apiv3.iucnredlist.org/api/v3/token Keep this key private. You can pass the key in to each function via the \code{key} parameter, but it's better to store the key either as a environment variable (\code{IUCN_REDLIST_KEY}) or an R option @@ -45,14 +45,18 @@ \section{No Spatial}{ This package does not include support for the spatial API, described at -\url{http://apiv3.iucnredlist.org/spatial} +https://apiv3.iucnredlist.org/spatial } \section{Citing the Red List API}{ -The citation is -\verb{IUCN 2015. IUCN Red List of Threatened Species. Version 2015-4 } -You can get this programatically via \code{\link[=rl_citation]{rl_citation()}} +Get the proper citation for the version of the Red List you are using +by programatically running \code{\link[=rl_citation]{rl_citation()}} +} + +\section{Red List API Terms of Use}{ + +See https://www.iucnredlist.org/terms/terms-of-use } \section{Rate limiting}{ @@ -64,19 +68,9 @@ lot of calls. } -\section{Data Discrepancy}{ - -There can sometimes be a discrepancy between what you get on the IUCN -website and what you get with this package; we don't know why, the IUCN -API is not an open book. -} - \section{Citing the IUCN Red List API}{ -See \url{http://apiv3.iucnredlist.org/about} +See https://apiv3.iucnredlist.org/about } -\author{ -Scott Chamberlain \email{myrmecocystus@gmail.com} -} \keyword{package} diff -Nru r-cran-rredlist-0.6.0/MD5 r-cran-rredlist-0.7.0/MD5 --- r-cran-rredlist-0.6.0/MD5 2020-01-28 06:10:03.000000000 +0000 +++ r-cran-rredlist-0.7.0/MD5 2020-10-29 08:30:02.000000000 +0000 @@ -1,7 +1,7 @@ -62e366ec147b17f651125f2363f18d76 *DESCRIPTION +bf0a40ecea29aa0b98df370a4740918e *DESCRIPTION 35bd8606c71dfbfad3ad27387e177ad4 *LICENSE 193e7fc1f013b9e5c58962273b434c37 *NAMESPACE -14f8ce4303a4d3579e48fc38bc5e9d28 *NEWS.md +a9fd5fe34a74b14e6e4af14b012a1016 *NEWS.md 57fdb9bd5c0776c08d34c2775bac6d01 *R/rl_citation.R 4d03043dbdfb18f7df49d7b66fb012c2 *R/rl_common_names.R be7cf26312030f4e4ec758af39972aa3 *R/rl_comp_groups.R @@ -9,7 +9,7 @@ b04ebb961f7af536ddff27d2df811b16 *R/rl_growth_forms.R 385cccf373842340f4a06c221f8f6d9e *R/rl_habitats.R bca4e44fdaeb609d55c9344090bc0f79 *R/rl_history.R -b974f8958db7195ae2ab80e668fbeefb *R/rl_key.R +cc6d373c02e359157bbc8afdf84a971e *R/rl_key.R 78329f449a6d8ce5df2650dbaac603fc *R/rl_measures.R f03a75e3c552984146142c51294de1f1 *R/rl_narrative.R 04df21e1d25bfeae38e15d9a490d66c0 *R/rl_occ_country.R @@ -23,84 +23,84 @@ 9e5f3741f4acb5037d5244e5b0a1993c *R/rl_synonyms.R 4bee8205e89ba38fd20b051a7f88bbd7 *R/rl_threats.R b894b5414381bab24f973f230c28e9ba *R/rl_version.R -e16c6194c982e45a731384b0272c256a *R/rredlist-package.R -c2456b0b08e666269d5b1d9da55e3921 *R/zzz.R -98a698e6ac84c1111913fb98fcf50737 *README.md +119ee7438c695b2fcbe2efbab1163610 *R/rredlist-package.R +bb2fdad57d805c34a6da020f369e42f8 *R/zzz.R +5c1ff9b59c6d7feea1a03693bd2070dc *README.md 72b0cec36cca1bbde799a20322e15cce *man/rl_citation.Rd -bdd2c15c48bee21fa12f41385ae3e58f *man/rl_common_names.Rd -8e7ddd88fd1cef46676feed257e8659e *man/rl_comp_groups.Rd -27298070b8a749722bd083003ac97508 *man/rl_countries.Rd -8cd06a2c8872f0f84417ef6db1af7827 *man/rl_growth_forms.Rd -711569a43565836447f5d7034a2f3f66 *man/rl_habitats.Rd -47d8ef9eb8389cdc9a07ec10d706a21f *man/rl_history.Rd -ac4fa6a27bbeb22ac43be8aba07fc8b0 *man/rl_measures.Rd -1a6f58656ae488621819d8c92eafb0ff *man/rl_narrative.Rd -e181cca0f630bc7fbf33bdac5bbc2021 *man/rl_occ_country.Rd -bdb35c48e69803ce28077f6683239fc3 *man/rl_regions.Rd -9a047db00c4966d263a2cc3ee9a88cdd *man/rl_search.Rd +b7aa7d927e9ab9c2692d2016782b119f *man/rl_common_names.Rd +5ebcab67a4e3d842f19490c0a28ed8b6 *man/rl_comp_groups.Rd +522994a07bafdb9630045061a2934235 *man/rl_countries.Rd +f01bbf476c07454e7d4d7b834480f6ea *man/rl_growth_forms.Rd +5eeb27f7f663711d9f663b9ae9d7675a *man/rl_habitats.Rd +37aeedfadc53810823b748bde9d86e07 *man/rl_history.Rd +5b2e8044baea2691600ed911beaf5e7f *man/rl_measures.Rd +f0e6f7eeda8ebd3b48d7abfab16edcb5 *man/rl_narrative.Rd +c01813988b6262a80b73babe45a41f35 *man/rl_occ_country.Rd +f3ba0cbf328b793d347491a7d0a5dc84 *man/rl_regions.Rd +5b054686d2b2019343e3574743fb4eeb *man/rl_search.Rd 250ef00cdcafe200b644dec85b9fd02c *man/rl_sp.Rd cf440570de859c522c4f93345685e478 *man/rl_sp_category.Rd -bcbad8e188909de163ed652c2efcb43d *man/rl_sp_citation.Rd -99e333b57e4d188b68e3e1daf8360bc2 *man/rl_sp_count.Rd -42bd44cdfd11f7c632a77e65a91f7c4e *man/rl_sp_country.Rd -5c8e0fd9841e7358a442ca65c07e540c *man/rl_synonyms.Rd -3c04556c47c23b7a1653501c9a7da9d9 *man/rl_threats.Rd +d7b212e60ef114d5ef6669d4133fc9cc *man/rl_sp_citation.Rd +1377cfe83112f3921b58728ecd6ad219 *man/rl_sp_count.Rd +4be3d913c357844704afa2d5c8510ea6 *man/rl_sp_country.Rd +351db79d5dc6eafc2a944157f1e6656b *man/rl_synonyms.Rd +112f335c16947a2775d4c670f629e334 *man/rl_threats.Rd fa1062b8b6201faa30c1f165e164a72d *man/rl_use_iucn.Rd 1ac0004484d85953e8cff48a51dcc9d2 *man/rl_version.Rd -44be5c0746aa07f2ee492e34b1ed96d6 *man/rredlist-package.Rd -61eb27b7e286220a7ff1e16ca87f2d93 *tests/fixtures/rl_citation.yml -88f3450f2ab151417f90d8ee1f2875e0 *tests/fixtures/rl_common_names-badkey.yml -17842cb61a523047f5e5434a69bc7f82 *tests/fixtures/rl_common_names-no-results.yml -2d6c175d9ee841deb85529d28e4fe9e3 *tests/fixtures/rl_common_names-not-parsing.yml -b1bb8591461ddeb95e0626a6b69b28c5 *tests/fixtures/rl_common_names.yml -f602435021617a29af44ab320d188874 *tests/fixtures/rl_common_names_-badkey.yml -6cabe6e6bf6d3ef2635c623919a1d995 *tests/fixtures/rl_common_names_.yml -3f1e665bf01600bcdb806010cea8890d *tests/fixtures/rl_countries-not-parsing.yml -158f1198665e6065e92ac0ae6fafb210 *tests/fixtures/rl_countries.yml -938369899b6febec20f8d2ec8b9283e4 *tests/fixtures/rl_countries_.yml -fe168a1c997c8f61484de2bf301dd8c8 *tests/fixtures/rl_growth_forms-no-results.yml -39bc2bbbb398bbeb9e3a14bdc4e61349 *tests/fixtures/rl_growth_forms-not-parsing.yml -99512a8e9bfd896907790ca8d8d71d26 *tests/fixtures/rl_growth_forms.yml -157f527288116836a15362171a7e3a72 *tests/fixtures/rl_growth_forms_.yml -0815535be950966db75212be2635b87d *tests/fixtures/rl_habitats-not-found.yml -7fd173147343900bc459bced4d5ac131 *tests/fixtures/rl_habitats-not-parsing.yml -11cfe92ab1e5d06942616d73bbbab201 *tests/fixtures/rl_habitats.yml -5d3bf0382e98a4c11ed764b21d8f63f4 *tests/fixtures/rl_habitats_-region-not-found.yml -fa9615118ab85870949f44791996d823 *tests/fixtures/rl_habitats_.yml -60ec5e6309158e71a16643ec9c2d960c *tests/fixtures/rl_history-by-id.yml -4bf1b5eb32ea79f981e1f1793cafafda *tests/fixtures/rl_history-not-parsing.yml -b83dc714f9c7996385a5dd969957edf7 *tests/fixtures/rl_history-region-together.yml -f2da4b56a061e1bd532bebaf5cd10903 *tests/fixtures/rl_history.yml -cbf53953e994609b243f88272fd25ad7 *tests/fixtures/rl_history_.yml -c93bde799cef037218b491e2d2331c9b *tests/fixtures/rl_measures-no-results.yml -a9da1fc1692844b107eb4965ad12a792 *tests/fixtures/rl_measures-not-parsing.yml -3b07f0e3cf17482f946e2317d9c74fd0 *tests/fixtures/rl_measures.yml -ff530d4bdb17dfa568771e5d529f80c3 *tests/fixtures/rl_measures_-region-not-found.yml -f00bee9226cd78e5aea2c54db4d3eca2 *tests/fixtures/rl_measures_.yml -bda4aefa9efa184f73740f7517d02533 *tests/fixtures/rl_narrative-no-results.yml -b5cd985333dd8eb264604c948784ad06 *tests/fixtures/rl_narrative-not-parsing.yml -27f41a8a92063a07f5bc1e58f658f0e9 *tests/fixtures/rl_narrative.yml -ce5ebe7d78575f57ef2d006ce7b09640 *tests/fixtures/rl_narrative_.yml -456e78c385a33f4ce50989d765036258 *tests/fixtures/rl_search-no-results.yml -2f135d16d73b226011a3efc6b935c70f *tests/fixtures/rl_search-not-parsing.yml -472d884cd5a4eeb2e55cdb7b182dc17b *tests/fixtures/rl_search.yml -4fb419947f44255283a9a4381a42b2eb *tests/fixtures/rl_search_-region-not-found.yml -d22dfcfb7ea84f8b2e9a958da540406d *tests/fixtures/rl_search_.yml -ff7607715cf875d7d8d8ca215375acb9 *tests/fixtures/rl_sp_category-no-results.yml -d5d56aab11a11aff4dbd90fe4d011407 *tests/fixtures/rl_sp_category-not-parsing.yml -8d923f40681219afbc1ca75f8319585c *tests/fixtures/rl_sp_category.yml -dc213f0999d245016298bd102b027fe9 *tests/fixtures/rl_sp_category_.yml -6c90d907b71aedaeb9e14985c9b5c325 *tests/fixtures/rl_synonyms-no-results.yml -6792bd1c09468fa5440641095a6320ca *tests/fixtures/rl_synonyms-not-parsing.yml -38b46d002ea575024f781603a1f188f5 *tests/fixtures/rl_synonyms.yml -6692504c1f94cfa43bb8fac5e2a9302d *tests/fixtures/rl_synonyms_.yml -19ae4adfe74453238cc9f2903d5039f6 *tests/fixtures/rl_threats-no-results.yml -27414a441e68ff6ec08211c9f59e7df7 *tests/fixtures/rl_threats-not-parsing.yml -7866562cc4b1b24a231cf05c120dd42d *tests/fixtures/rl_threats.yml -27414a441e68ff6ec08211c9f59e7df7 *tests/fixtures/rl_threats_.yml -a671922db601c9528701d33369c7ee3b *tests/fixtures/rl_version.yml +f417240fe07922ac618461d0ab3674cc *man/rredlist-package.Rd +ec46248bc0f80518b758802b9fe559de *tests/fixtures/rl_citation.yml +07c564255b7a163481246041c6e001ef *tests/fixtures/rl_common_names-badkey.yml +df344c048afc62a260dcf096bdda79e2 *tests/fixtures/rl_common_names-no-results.yml +5a95984e390104b8630c6a2894a32ebd *tests/fixtures/rl_common_names-not-parsing.yml +18fba9dc11572fe717e72ab28f5b89fc *tests/fixtures/rl_common_names.yml +51ed6faaaedf38f3e0a650ef62f6f05d *tests/fixtures/rl_common_names_-badkey.yml +829bfc1aad680321582baf30cbb77934 *tests/fixtures/rl_common_names_.yml +053e2014911fb57f892d15a303bfc3a1 *tests/fixtures/rl_countries-not-parsing.yml +3ba007cb13b8c77d5a64db4411f97d71 *tests/fixtures/rl_countries.yml +37aacdc264d2e05815a4900a00e456d4 *tests/fixtures/rl_countries_.yml +46c6df15877d12cf8b099b8484f5a94b *tests/fixtures/rl_growth_forms-no-results.yml +fefe0e241654784f3fe745aaa67302f2 *tests/fixtures/rl_growth_forms-not-parsing.yml +0406e21f2e3ec970d4daf708770f608f *tests/fixtures/rl_growth_forms.yml +0dbe42ae0df4f92d8496715c3c90dc15 *tests/fixtures/rl_growth_forms_.yml +e9257245f2399f2d1372ae064f4e78fa *tests/fixtures/rl_habitats-not-found.yml +6951d089b3625bb425ead0015e24ef62 *tests/fixtures/rl_habitats-not-parsing.yml +fa6bb2cf443cd090fea1d3276443fb8f *tests/fixtures/rl_habitats.yml +b2e30802ff0b41437811c2d2f3d23a26 *tests/fixtures/rl_habitats_-region-not-found.yml +5508c5908cd60d7d01d2fb14566df2ca *tests/fixtures/rl_habitats_.yml +3ad2edaa697c6fa623cf2a7fdd4a6861 *tests/fixtures/rl_history-by-id.yml +3ceace98fc5228be4601b79a33385d01 *tests/fixtures/rl_history-not-parsing.yml +ec0a3e359dd668669827a8fcf2c0d8c5 *tests/fixtures/rl_history-region-together.yml +763b7b00130505da13bd12b8e5b62afe *tests/fixtures/rl_history.yml +382721dcc12eb3aeb662aaa2b21d916a *tests/fixtures/rl_history_.yml +9e20ae47554ea32b5fb5185a7e751f19 *tests/fixtures/rl_measures-no-results.yml +101c1522677da1f8e3b8bd8f293cd711 *tests/fixtures/rl_measures-not-parsing.yml +1df320a60f025c1853c50e45e4889b42 *tests/fixtures/rl_measures.yml +e1af5f84e85c2081df65e96e114d769b *tests/fixtures/rl_measures_-region-not-found.yml +d946d2ca9669370ee11d1e3d8062ac6f *tests/fixtures/rl_measures_.yml +3059e4f11320a52086562b735c2866f2 *tests/fixtures/rl_narrative-no-results.yml +bf3e0ee069f9c10e3c4c11220cefbd87 *tests/fixtures/rl_narrative-not-parsing.yml +349bcc6c5500e745c465d124c0891269 *tests/fixtures/rl_narrative.yml +fe7d86eef05362d045feb6e88a12b544 *tests/fixtures/rl_narrative_.yml +25f6d5c9a5c100f712979b86fa0d8f00 *tests/fixtures/rl_search-no-results.yml +a263aee0108283bdbb1b6a913d6c0308 *tests/fixtures/rl_search-not-parsing.yml +7d901d96b4aa5b37d5318fe71d930469 *tests/fixtures/rl_search.yml +2f1852add0b834b0db4f95bc8704bcb1 *tests/fixtures/rl_search_-region-not-found.yml +1defb145c3a984ef140334a281efb23f *tests/fixtures/rl_search_.yml +2201a800350d8f49660271611af044d8 *tests/fixtures/rl_sp_category-no-results.yml +99fe067cb31985b6a6626537ec8834ed *tests/fixtures/rl_sp_category-not-parsing.yml +125f0ad086f276a948641c194614c61a *tests/fixtures/rl_sp_category.yml +6dd9c578e942494e393a79fcaf7b1906 *tests/fixtures/rl_sp_category_.yml +cd613f16a4aba4b7aaac346e9723ab7c *tests/fixtures/rl_synonyms-no-results.yml +d54ebb5a45110a5fb4f5d9c0aa447398 *tests/fixtures/rl_synonyms-not-parsing.yml +dc085960f6c88ea380cc35b901b9244e *tests/fixtures/rl_synonyms.yml +b5bdd6f41748b58cdfe340267033adae *tests/fixtures/rl_synonyms_.yml +9334e3c9ab9f2dfb1ca1f43bb0f944ac *tests/fixtures/rl_threats-no-results.yml +3e5593f908a5ee06f70cd3888ec1056d *tests/fixtures/rl_threats-not-parsing.yml +1644bfe7f56a6985cb2fe49fc47c47c3 *tests/fixtures/rl_threats.yml +3e5593f908a5ee06f70cd3888ec1056d *tests/fixtures/rl_threats_.yml +cbc219358eb6c831b9e2d2d19c7994ba *tests/fixtures/rl_version.yml d5da941c797771d510f5e8d756e73c76 *tests/test-all.R -28a8215534ff1d37d994495014adfbcc *tests/testthat/helper-rredlist.R +17ffd415ee39ba246a8114acc4e1116a *tests/testthat/helper-rredlist.R 35a672b1085645985b2d8bc3cfca9117 *tests/testthat/test-fail-well.R b32be06c75270701eca111968ba131aa *tests/testthat/test-rl_citation.R 3c49dcd200861a746a89d30541eb934f *tests/testthat/test-rl_common_names.R @@ -108,9 +108,9 @@ 5ecbd01e90ad7e3740a478cc6080dae8 *tests/testthat/test-rl_growth_forms.R d0fef3cc5822aa394d1b51cd66ed7c57 *tests/testthat/test-rl_habitat.R 023ab19271e196eebf4f6a3f09032dca *tests/testthat/test-rl_history.R -e654b4ecac00713c24d8c3cb98fcf195 *tests/testthat/test-rl_key.R +da265c3961a914b3c98139832b99fec2 *tests/testthat/test-rl_key.R 4aeb3a64c8beb4f8c17644b691fa47e4 *tests/testthat/test-rl_measures.R -4f7f11ebff45e47bb36f07b6f9e7b32b *tests/testthat/test-rl_narrative.R +bdf907b04c22d3109ca2954eb8fc8b0b *tests/testthat/test-rl_narrative.R 86a36a2211c9d00befc5684bf3e22f94 *tests/testthat/test-rl_search.R ae71ab5d8ac5fb05ff5426582ed42505 *tests/testthat/test-rl_sp_category.R 8f0fabe685279cc0bdad6a118594c928 *tests/testthat/test-rl_synonyms.R diff -Nru r-cran-rredlist-0.6.0/NEWS.md r-cran-rredlist-0.7.0/NEWS.md --- r-cran-rredlist-0.6.0/NEWS.md 2020-01-28 00:53:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/NEWS.md 2020-10-20 20:41:46.000000000 +0000 @@ -1,3 +1,13 @@ +rredlist 0.7.0 +=================== + +### MINOR IMPROVEMENTS + +* vignette added, but only available on the docs site (#24) +* when testing, if a iucm redlist key not found, set a dummy key (#41) +* readme improvements (#42) +* change base url for Red List API to https from http + rredlist 0.6.0 =================== diff -Nru r-cran-rredlist-0.6.0/R/rl_key.R r-cran-rredlist-0.7.0/R/rl_key.R --- r-cran-rredlist-0.6.0/R/rl_key.R 2018-07-19 18:42:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/R/rl_key.R 2020-10-14 22:43:34.000000000 +0000 @@ -12,10 +12,10 @@ #' rl_use_iucn <- function(){ if(interactive()){ - utils::browseURL("http://apiv3.iucnredlist.org/api/v3/token") + utils::browseURL("https://apiv3.iucnredlist.org/api/v3/token") } message("After getting your key set it as IUCN_REDLIST_KEY in .Renviron.\n IUCN_REDLIST_KEY='youractualkeynotthisstring'\n For that, use usethis::edit_r_environ()") - invisible("http://apiv3.iucnredlist.org/api/v3/token") -} \ No newline at end of file + invisible("https://apiv3.iucnredlist.org/api/v3/token") +} diff -Nru r-cran-rredlist-0.6.0/R/rredlist-package.R r-cran-rredlist-0.7.0/R/rredlist-package.R --- r-cran-rredlist-0.6.0/R/rredlist-package.R 2020-01-28 00:32:36.000000000 +0000 +++ r-cran-rredlist-0.7.0/R/rredlist-package.R 2020-10-14 22:41:28.000000000 +0000 @@ -1,5 +1,5 @@ -#' rredlist - IUCN Red List Client -#' +#' @title rredlist +#' @description IUCN Red List R Client #' @section Taxonomic Names vs. IUCN IDs: #' From the documentation (quoting): "It is advisable wherever possible to use #' the taxon name (species name) to make your API calls, rather than using IDs. @@ -10,7 +10,7 @@ #' IUCN requires you to get your own API key, an alphanumeric string that you #' need to send in every request. See key A IUCN API token. See [rl_use_iucn()] #' for help getting and storing it. Get it at -#' +#' https://apiv3.iucnredlist.org/api/v3/token #' Keep this key private. You can pass the key in to each function via the #' `key` parameter, but it's better to store the key either as a #' environment variable (`IUCN_REDLIST_KEY`) or an R option @@ -30,13 +30,14 @@ #' #' @section No Spatial: #' This package does not include support for the spatial API, described at -#' +#' https://apiv3.iucnredlist.org/spatial #' #' @section Citing the Red List API: -#' The citation is -#' `IUCN 2015. IUCN Red List of Threatened Species. Version 2015-4 -#' ` -#' You can get this programatically via [rl_citation()] +#' Get the proper citation for the version of the Red List you are using +#' by programatically running [rl_citation()] +#' +#' @section Red List API Terms of Use: +#' See https://www.iucnredlist.org/terms/terms-of-use #' #' @section Rate limiting: #' From the IUCN folks: Too many frequent calls, or too many calls per day @@ -44,19 +45,13 @@ #' Red List Unit asked that you contact them, as there might be better options. #' They suggest a 2-second delay between your calls if you plan to make a #' lot of calls. -#' -#' @section Data Discrepancy: -#' There can sometimes be a discrepancy between what you get on the IUCN -#' website and what you get with this package; we don't know why, the IUCN -#' API is not an open book. #' #' @section Citing the IUCN Red List API: -#' See +#' See https://apiv3.iucnredlist.org/about #' #' @importFrom jsonlite fromJSON #' @name rredlist-package #' @aliases rredlist #' @docType package -#' @author Scott Chamberlain \email{myrmecocystus@@gmail.com} #' @keywords package NULL diff -Nru r-cran-rredlist-0.6.0/R/zzz.R r-cran-rredlist-0.7.0/R/zzz.R --- r-cran-rredlist-0.6.0/R/zzz.R 2019-01-07 20:31:48.000000000 +0000 +++ r-cran-rredlist-0.7.0/R/zzz.R 2020-10-14 22:05:13.000000000 +0000 @@ -43,13 +43,13 @@ } } -rr_base <- function() "http://apiv3.iucnredlist.org/api/v3" +rr_base <- function() "https://apiv3.iucnredlist.org/api/v3" space <- function(x) gsub("\\s", "%20", x) assert_is <- function(x, y) { if (!is.null(x)) { - if (!class(x) %in% y) { + if (!inherits(x, y)) { stop(deparse(substitute(x)), " must be of class ", paste0(y, collapse = ", "), call. = FALSE) } diff -Nru r-cran-rredlist-0.6.0/README.md r-cran-rredlist-0.7.0/README.md --- r-cran-rredlist-0.6.0/README.md 2020-01-28 00:25:29.000000000 +0000 +++ r-cran-rredlist-0.7.0/README.md 2020-10-14 22:15:28.000000000 +0000 @@ -6,74 +6,12 @@ [![cran checks](https://cranchecks.info/badges/worst/rredlist)](https://cranchecks.info/pkgs/rredlist) [![Build Status](https://travis-ci.org/ropensci/rredlist.svg?branch=master)](https://travis-ci.org/ropensci/rredlist) [![codecov.io](https://codecov.io/github/ropensci/rredlist/coverage.svg?branch=master)](https://codecov.io/github/ropensci/rredlist?branch=master) -[![rstudio mirror downloads](http://cranlogs.r-pkg.org/badges/rredlist)](https://github.com/metacran/cranlogs.app) -[![cran version](http://www.r-pkg.org/badges/version/rredlist)](https://cran.r-project.org/package=rredlist) +[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/rredlist)](https://github.com/r-hub/cranlogs.app) +[![cran version](https://www.r-pkg.org/badges/version/rredlist)](https://cran.r-project.org/package=rredlist) -`rredlist` is an R client for the IUCN Red List (). -The IUCN Red List is a global list of threatened and endangered species. +`rredlist` is an R client for the IUCN Red List (https://apiv3.iucnredlist.org/api/v3/docs). The IUCN Red List is a global list of threatened and endangered species. IUCN Red List docs: https://apiv3.iucnredlist.org/api/v3/docs -[IUCN Red List docs][docs] - -> important note: [redlistr][] is a different package - not working with the IUCN Red List API - -> Note: there can sometimes be a discrepancy between what you get on the IUCN website and what -> you get with this package; we don't know why, the IUCN API is not an open book. - -## Citing the IUCN Red List API - -See - -## Authentication - -IUCN requires you to get your own API key, an alphanumeric string that you need to send in every request. There's an helper function in the package helping you getting it at and storing it. - - -```r -rredlist::rl_use_iucn() -``` - -Keep this key private. You can pass the key in to each function via the `key` parameter, but it's better to store the key either as a environment variable (`IUCN_REDLIST_KEY`) or an R option (`iucn_redlist_key`) - we recommend using the former option. - -## High vs. Low level package APIs - -__High level API__ - -High level functions do the HTTP request and parse data to a data.frame for -ease of downstream use. The high level functions have no underscore on the end -of the function name, e.g., `rl_search` - -__Low level API__ - -The parsing to data.frame in the high level API does take extra time. The low -level API only does the HTTP request, and gives back JSON without doing any -more parsing. The low level functions DO have an underscore on the end -of the function name, e.g., `rl_search_` - -## No Spatial - -This package does not include support for the spatial API, described at -. - -## Rate Limiting - -From the IUCN folks: "Too many frequent calls, or too many calls per day -might get your access blocked temporarily. If you're a heavy API user, the -Red List Unit asked that you contact them, as there might be better options. -They suggest a 2-second delay between your calls if you plan to make a -lot of calls." - -## Citing IUCN API - -use the function `rl_citation()` - - -```r -rl_citation() -#> [1] "IUCN 2015. IUCN Red List of Threatened Species. Version 2019-3 " -``` - - -## Install +## Installation CRAN @@ -86,121 +24,9 @@ ```r -devtools::install_github("ropensci/rredlist") -``` - - -```r -library("rredlist") -``` - -## High level API - -High level functions do the HTTP request and parse to data to a data.frame for ease -of downstream use. - - -```r -rl_search('Fratercula arctica') -#> $name -#> [1] "Fratercula arctica" -#> -#> $result -#> taxonid scientific_name kingdom phylum class order family -#> 1 22694927 Fratercula arctica ANIMALIA CHORDATA AVES CHARADRIIFORMES ALCIDAE -#> genus main_common_name authority published_year assessment_date -#> 1 Fratercula Atlantic Puffin (Linnaeus, 1758) 2018 2018-08-07 -#> category criteria population_trend marine_system freshwater_system -#> 1 VU A4abcde Decreasing TRUE FALSE -#> terrestrial_system assessor reviewer aoo_km2 eoo_km2 -#> 1 TRUE BirdLife International Westrip, J. NA 20800000 -#> elevation_upper elevation_lower depth_upper depth_lower errata_flag -#> 1 NA NA NA NA NA -#> errata_reason amended_flag amended_reason -#> 1 NA NA NA -``` - -Likely a bit faster is to parse to a list only, and not take the extra data.frame parsing time - - -```r -rl_search('Fratercula arctica', parse = FALSE) -#> $name -#> [1] "Fratercula arctica" -#> -#> $result -#> $result[[1]] -#> $result[[1]]$taxonid -#> [1] 22694927 -#> -#> $result[[1]]$scientific_name -#> [1] "Fratercula arctica" -... -``` - -## Low level API - -The parsing to data.frame in the high level API does take extra time. The low level API -only does the HTTP request, and gives back JSON without doing any more parsing - - -```r -rl_search_('Fratercula arctica') -#> [1] "{\"name\":\"Fratercula arctica\",\"result\":[{\"taxonid\":22694927,\"scientific_name\":\"Fratercula arctica\",\"kingdom\":\"ANIMALIA\",\"phylum\":\"CHORDATA\",\"class\":\"AVES\",\"order\":\"CHARADRIIFORMES\",\"family\":\"ALCIDAE\",\"genus\":\"Fratercula\",\"main_common_name\":\"Atlantic Puffin\",\"authority\":\"(Linnaeus, 1758)\",\"published_year\":2018,\"assessment_date\":\"2018-08-07\",\"category\":\"VU\",\"criteria\":\"A4abcde\",\"population_trend\":\"Decreasing\",\"marine_system\":true,\"freshwater_system\":false,\"terrestrial_system\":true,\"assessor\":\"BirdLife International\",\"reviewer\":\"Westrip, J.\",\"aoo_km2\":null,\"eoo_km2\":\"20800000\",\"elevation_upper\":null,\"elevation_lower\":null,\"depth_upper\":null,\"depth_lower\":null,\"errata_flag\":null,\"errata_reason\":null,\"amended_flag\":null,\"amended_reason\":null}]}" -``` - -To consume this JSON, you can use `jsonlite` - - -```r -library("jsonlite") -jsonlite::fromJSON(rl_search_('Fratercula arctica')) -#> $name -#> [1] "Fratercula arctica" -#> -#> $result -#> taxonid scientific_name kingdom phylum class order family -#> 1 22694927 Fratercula arctica ANIMALIA CHORDATA AVES CHARADRIIFORMES ALCIDAE -#> genus main_common_name authority published_year assessment_date -#> 1 Fratercula Atlantic Puffin (Linnaeus, 1758) 2018 2018-08-07 -#> category criteria population_trend marine_system freshwater_system -#> 1 VU A4abcde Decreasing TRUE FALSE -#> terrestrial_system assessor reviewer aoo_km2 eoo_km2 -#> 1 TRUE BirdLife International Westrip, J. NA 20800000 -#> elevation_upper elevation_lower depth_upper depth_lower errata_flag -#> 1 NA NA NA NA NA -#> errata_reason amended_flag amended_reason -#> 1 NA NA NA -``` - -Or other tools, e.g., `jq` via the `jqr` R client - - -```r -# devtools::install_github("ropensci/jqr") -library("jqr") -rl_search_('Fratercula arctica') %>% dot() -#> { -#> "name": "Fratercula arctica", -#> "result": [ -#> { -#> "taxonid": 22694927, -#> "scientific_name": "Fratercula arctica", -#> "kingdom": "ANIMALIA", -#> "phylum": "CHORDATA", -#> "class": "AVES", -#> "order": "CHARADRIIFORMES", -#> "family": "ALCIDAE", -#> "genus": "Fratercula", -#> "main_common_name": "Atlantic Puffin", -#> "authority": "(Linnaeus, 1758)", -#> "published_year": 2018, -#> "assessment_date": "2018-08-07", -#> "category": "VU", -#> "criteria": "A4abcde", -#> "population_trend": "Decreasing", -#> "marine_system": true, -... +remotes::install_github("ropensci/rredlist") +# OR +install.packages("rredlist", repos="https://dev.ropensci.org") ``` ## Meta @@ -208,13 +34,9 @@ * Please [report any issues or bugs](https://github.com/ropensci/rredlist/issues). * License: MIT * Get citation information for `rredlist` in R doing `citation(package = 'rredlist')` -* Please note that this project is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms. +* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms. [![rofooter](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org) - - -[docs]: http://apiv3.iucnredlist.org/api/v3/docs -[token]: http://apiv3.iucnredlist.org/api/v3/token +[token]: https://apiv3.iucnredlist.org/api/v3/token [redlistr]: https://github.com/red-list-ecosystem/redlistr -[coc]: https://github.com/ropensci/rredlist/blob/master/CODE_OF_CONDUCT.md diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_citation.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_citation.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_citation.yml 2020-01-28 00:41:33.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_citation.yml 2020-10-14 22:27:19.000000000 +0000 @@ -1,12 +1,12 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/version?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/version?token=<> body: encoding: '' string: '' headers: - User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rredlist/0.6.0) + User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rredlist/0.6.0.91) Accept-Encoding: gzip, deflate Accept: application/json, text/xml, application/xml, */* response: @@ -16,16 +16,19 @@ explanation: Request fulfilled, document follows headers: status: HTTP/1.1 200 OK - server: nginx/1.1.19 - date: Tue, 28 Jan 2020 00:41:33 GMT + server: nginx/1.14.0 (Ubuntu) + date: Sun, 03 May 2020 16:07:25 GMT content-type: application/json; charset=utf-8 content-length: '20' connection: keep-alive x-powered-by: Sails + etag: W/"14-O864lh6yoAoRuDqCP2sZCg" vary: Accept-Encoding + set-cookie: sails.sid=s%3Apdh9bs8LpEQWoLXuFLaf31NiNm8irxLl.hjhuIFSeICzR7MW9QTa2UTrsUiiqLj5jbkE%2B0nXR0lQ; + Path=/; HttpOnly body: encoding: UTF-8 file: no - string: '{"version":"2019-3"}' - recorded_at: 2020-01-28 00:41:33 GMT - recorded_with: vcr/0.4.0, webmockr/0.5.0 + string: '{"version":"2020-1"}' + recorded_at: 2020-05-03 16:07:26 GMT + recorded_with: vcr/0.5.4, webmockr/0.6.2 diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names_-badkey.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names_-badkey.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names_-badkey.yml 2020-01-28 00:41:04.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names_-badkey.yml 2020-10-14 22:25:17.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=adfds + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=adfds body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-badkey.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-badkey.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-badkey.yml 2020-01-28 00:41:04.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-badkey.yml 2020-10-14 22:24:53.000000000 +0000 @@ -1,12 +1,12 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=adfds + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=adfds body: encoding: '' string: '' headers: - User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rredlist/0.6.0) + User-Agent: r-curl/4.3 crul/1.0.0 rOpenSci(rredlist/0.6.0.91) Accept-Encoding: gzip, deflate Accept: application/json, text/xml, application/xml, */* response: @@ -16,16 +16,19 @@ explanation: Request fulfilled, document follows headers: status: HTTP/1.1 200 OK - server: nginx/1.1.19 - date: Tue, 28 Jan 2020 00:41:03 GMT + server: nginx/1.14.0 (Ubuntu) + date: Wed, 14 Oct 2020 22:24:52 GMT content-type: application/json; charset=utf-8 content-length: '30' connection: keep-alive x-powered-by: Sails + etag: W/"1e-w+TIThKJr/qHkPj0MvBIfg" vary: Accept-Encoding + set-cookie: sails.sid=s%3Ain5oFpCz1_pEEWnJjF-w3UXSMENjbGLY.pCE6E%2B2dYootG7PoPOu7Gv8yHmVVVTYne90CiSNFHWw; + Path=/; HttpOnly body: encoding: UTF-8 file: no string: '{"message":"Token not valid!"}' - recorded_at: 2020-01-28 00:41:04 GMT - recorded_with: vcr/0.4.0, webmockr/0.5.0 + recorded_at: 2020-10-14 22:24:53 GMT + recorded_with: vcr/0.5.4, webmockr/0.7.0 diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-no-results.yml 2020-01-28 00:41:49.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-no-results.yml 2020-10-14 22:27:54.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names-not-parsing.yml 2020-01-28 00:41:48.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names-not-parsing.yml 2020-10-14 22:27:53.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names_.yml 2020-01-28 00:41:49.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names_.yml 2020-10-14 22:27:47.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_common_names.yml 2020-01-28 00:41:47.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_common_names.yml 2020-10-14 22:27:51.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/common_names/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_countries-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_countries-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_countries-not-parsing.yml 2020-01-28 00:42:09.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_countries-not-parsing.yml 2020-10-14 22:28:24.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/country/list?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/country/list?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_countries_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_countries_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_countries_.yml 2020-01-28 00:42:09.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_countries_.yml 2020-10-14 22:28:18.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/country/list?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/country/list?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_countries.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_countries.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_countries.yml 2020-01-28 00:42:08.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_countries.yml 2020-10-14 22:28:22.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/country/list?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/country/list?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms-no-results.yml 2020-01-28 00:42:31.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms-no-results.yml 2020-10-14 22:28:48.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Mucuna%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Mucuna%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms-not-parsing.yml 2020-01-28 00:42:28.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms-not-parsing.yml 2020-10-14 22:28:44.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Quercus%20robur?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Quercus%20robur?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms_.yml 2020-01-28 00:42:29.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms_.yml 2020-10-14 22:28:41.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Mucuna%20bracteata?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Mucuna%20bracteata?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_growth_forms.yml 2020-01-28 00:42:27.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_growth_forms.yml 2020-10-14 22:28:42.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Quercus%20robur?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/growth_forms/species/name/Quercus%20robur?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats-not-found.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats-not-found.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats-not-found.yml 2020-01-28 00:42:45.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats-not-found.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/habitats/species/name/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/habitats/species/name/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats-not-parsing.yml 2020-01-28 00:42:43.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats_-region-not-found.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats_-region-not-found.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats_-region-not-found.yml 2020-01-28 00:41:05.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats_-region-not-found.yml 2020-10-14 22:25:36.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/habitats/species/id/22694927/region/34234?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/habitats/species/id/22694927/region/34234?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats_.yml 2020-01-28 00:42:44.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_habitats.yml 2020-01-28 00:42:42.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_habitats.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/habitats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_history-by-id.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_history-by-id.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_history-by-id.yml 2020-01-28 00:42:59.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_history-by-id.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/id/12392?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/id/12392?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_history-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_history-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_history-not-parsing.yml 2020-01-28 00:42:58.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_history-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/name/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/name/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_history-region-together.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_history-region-together.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_history-region-together.yml 2020-01-28 00:43:00.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_history-region-together.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/id/22823/region/europe?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/id/22823/region/europe?token=<> body: encoding: '' string: '' @@ -31,7 +31,7 @@ recorded_with: vcr/0.4.0, webmockr/0.5.0 - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/id/22823/region/mediterranean?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/id/22823/region/mediterranean?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_history_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_history_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_history_.yml 2020-01-28 00:43:01.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_history_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/name/Ursus%20maritimus/region/europe?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/name/Ursus%20maritimus/region/europe?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_history.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_history.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_history.yml 2020-01-28 00:42:56.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_history.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/history/name/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/history/name/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_measures-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_measures-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_measures-no-results.yml 2020-01-28 00:43:24.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_measures-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/measures/species/name/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/measures/species/name/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_measures-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_measures-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_measures-not-parsing.yml 2020-01-28 00:43:22.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_measures-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_measures_-region-not-found.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_measures_-region-not-found.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_measures_-region-not-found.yml 2020-01-28 00:41:06.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_measures_-region-not-found.yml 2020-10-14 22:26:04.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/measures/species/id/22694927/region/3wer?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/measures/species/id/22694927/region/3wer?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_measures_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_measures_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_measures_.yml 2020-01-28 00:43:23.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_measures_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_measures.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_measures.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_measures.yml 2020-01-28 00:43:21.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_measures.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/measures/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative-no-results.yml 2020-01-28 00:43:36.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/narrative/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/narrative/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative-not-parsing.yml 2020-01-28 00:43:34.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative_.yml 2020-01-28 00:43:35.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_narrative.yml 2020-01-28 00:43:34.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_narrative.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/narrative/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_search-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_search-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_search-no-results.yml 2020-01-28 00:43:50.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_search-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_search-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_search-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_search-not-parsing.yml 2020-01-28 00:43:47.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_search-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_search_-region-not-found.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_search_-region-not-found.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_search_-region-not-found.yml 2020-01-28 00:41:05.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_search_-region-not-found.yml 2020-10-14 22:25:50.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/id/22694927/region/3wer?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/id/22694927/region/3wer?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_search_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_search_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_search_.yml 2020-01-28 00:43:48.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_search_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_search.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_search.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_search.yml 2020-01-28 00:43:46.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_search.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category-no-results.yml 2020-01-28 00:44:22.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/category/asdfad?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/category/asdfad?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category-not-parsing.yml 2020-01-28 00:44:15.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category_.yml 2020-01-28 00:44:20.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_sp_category.yml 2020-01-28 00:44:08.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_sp_category.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/category/VU?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms-no-results.yml 2020-01-28 00:44:36.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms-not-parsing.yml 2020-01-28 00:44:34.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms_.yml 2020-01-28 00:44:35.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_synonyms.yml 2020-01-28 00:44:34.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_synonyms.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/species/synonym/Loxodonta%20africana?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_threats-no-results.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_threats-no-results.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_threats-no-results.yml 2020-01-28 00:44:47.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_threats-no-results.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/threats/species/name/Loxodonta%20asdfadf?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/threats/species/name/Loxodonta%20asdfadf?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_threats-not-parsing.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_threats-not-parsing.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_threats-not-parsing.yml 2020-01-28 00:44:45.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_threats-not-parsing.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_threats_.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_threats_.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_threats_.yml 2020-01-28 00:44:45.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_threats_.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_threats.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_threats.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_threats.yml 2020-01-28 00:44:44.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_threats.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/threats/species/name/Fratercula%20arctica?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/fixtures/rl_version.yml r-cran-rredlist-0.7.0/tests/fixtures/rl_version.yml --- r-cran-rredlist-0.6.0/tests/fixtures/rl_version.yml 2020-01-28 00:44:55.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/fixtures/rl_version.yml 2020-10-14 22:30:01.000000000 +0000 @@ -1,7 +1,7 @@ http_interactions: - request: method: get - uri: http://apiv3.iucnredlist.org/api/v3/version?token=<> + uri: https://apiv3.iucnredlist.org/api/v3/version?token=<> body: encoding: '' string: '' diff -Nru r-cran-rredlist-0.6.0/tests/testthat/helper-rredlist.R r-cran-rredlist-0.7.0/tests/testthat/helper-rredlist.R --- r-cran-rredlist-0.6.0/tests/testthat/helper-rredlist.R 2020-01-28 00:40:44.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/testthat/helper-rredlist.R 2020-02-28 17:35:59.000000000 +0000 @@ -1,6 +1,18 @@ # set up vcr library("vcr") + +vcr_dir <- "../fixtures" + +if (!nzchar(Sys.getenv("IUCN_REDLIST_KEY"))) { + if (dir.exists(vcr_dir)) { + Sys.setenv("IUCN_REDLIST_KEY" = "foobar") + } else { + stop("No API key nor cassettes, tests cannot be run.", + call. = FALSE) + } +} + invisible(vcr::vcr_configure( - dir = "../fixtures", - filter_sensitive_data = list("<>" = Sys.getenv('IUCN_REDLIST_KEY')) -)) + dir = vcr_dir, + filter_sensitive_data = list("<>" = Sys.getenv('IUCN_REDLIST_KEY')) +)) \ No newline at end of file diff -Nru r-cran-rredlist-0.6.0/tests/testthat/test-rl_key.R r-cran-rredlist-0.7.0/tests/testthat/test-rl_key.R --- r-cran-rredlist-0.6.0/tests/testthat/test-rl_key.R 2018-07-19 19:01:13.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/testthat/test-rl_key.R 2020-10-14 22:44:52.000000000 +0000 @@ -1,6 +1,6 @@ context("test-rl_key") test_that("rl_key produces expected URL and message", { - expect_equal(rl_use_iucn(), "http://apiv3.iucnredlist.org/api/v3/token") + expect_equal(rl_use_iucn(), "https://apiv3.iucnredlist.org/api/v3/token") expect_message(rl_use_iucn(), "After getting your key set") }) diff -Nru r-cran-rredlist-0.6.0/tests/testthat/test-rl_narrative.R r-cran-rredlist-0.7.0/tests/testthat/test-rl_narrative.R --- r-cran-rredlist-0.6.0/tests/testthat/test-rl_narrative.R 2018-07-19 19:20:46.000000000 +0000 +++ r-cran-rredlist-0.7.0/tests/testthat/test-rl_narrative.R 2020-07-17 15:16:57.000000000 +0000 @@ -2,6 +2,7 @@ test_that("high level works - parsing", { skip_on_cran() + skip_on_ci() vcr::use_cassette("rl_narrative", { aa <- rl_narrative('Fratercula arctica') @@ -16,6 +17,7 @@ test_that("high level works - not parsing", { skip_on_cran() + skip_on_ci() vcr::use_cassette("rl_narrative-not-parsing", { aa <- rl_narrative('Fratercula arctica', parse = FALSE) @@ -30,6 +32,7 @@ test_that("low level works", { skip_on_cran() + skip_on_ci() library("jsonlite")