- Fix a bug that prevented
spp_taxonconcept()
from downloading all the taxon concepts, see #42.
-
new features:
spp_taxonconcept()
now includes an auto-pagination that allows to retrieve all entries for queries that have more than 500 results;spp_taxonconcept()
,spp_eu_legislation()
,spp_cites_legislation()
andspp_references()
now supports vectors astaxon_id
argument which allows bulk analysis.- Functions
spp_*
now returns S3 objects:spp_taxonconcept()
returns an object of classspp_taxon
;spp_cites_legislation()
returns an object of classspp_cites_leg
orspp_cites_leg_multi
;spp_eu_legislation()
returns an object of classspp_eu_leg
orspp_eu_leg_multi
;spp_distributions()
returns an object of classspp_distr
orspp_distr_multi
;spp_references()
returns an object of classspp_refs
orspp_refs_multi
;
- Moreover:
spp_raw
class is defined for all functions including the argumentraw
, it returns the parsed output from the API as a list object.
-
add function parameters:
taxonomy
,with_descendants
,language
,updated_since
,per_page
,seq_page
,raw
,verbose
inspp_taxonconcept()
;scope
,language
andraw
tospp_cites_legislation()
;scope
,language
andraw
tospp_eu_legislation()
;language
andraw
tospp_distributions()
.
-
change function names:
set_token()
instead ofsppplus_login()
;spp_taxonconcept()
instead ofsppplus_taxonconcept()
;spp_cites_legislation()
instead oftaxon_cites_legislation()
;spp_eu_legislation()
instead oftaxon_eu_legislation()
;spp_distributions()
instead oftaxon_distribution()
;spp_references()
instead oftaxon_references()
;rcites_simplify()
instead ofsppplus_simplify()
;rcites_
instead ofsppplus_
for helper functions.
-
follow
goodpractice
:- use '<-' for assignment instead of '=',
- omit "Date" in DESCRIPTION,
- avoid 1:length(...), 1:nrow(...), 1:ncol(...),
First release
- spp_taxonconcept( ): access the Speciesplus taxon concept
- spp_cites_legislation( ): access CITES legislation data
- spp_eu_legislation( ): access EU legislation data
- spp_distributions( ): access a taxon distribution data
- spp_references( ): access a listing reference data