Releases: ropensci/spocc
Releases · ropensci/spocc
spocc v0.6.0
NEW FEATURES
- Added a new data source: Atlas of Living Australia (ALA), under
the abbreviationala
(#98) - Added a new data source: Ocean Biogeographic Information System (OBIS),
under the abbreviationobis
(#155)
MINOR IMPROVEMENTS
- Added note to docs and minor tweak to internal methods to account
for max results from iDigBio of 100,000. Now when you request more than
100K, you should get a warning saying as much (#169)
BUG FIXES
- Made
occ2df()
more robust to varied inputs - allowing for users
that may on purpose or not have a subset of the data source slots
normally in theoccdat
class object (#171)
spocc v0.5.4
MINOR IMPROVEMENTS
rvertnet
, a dependency dealing with data from Vertnet, was failing
on certain searches.rvertnet
was fixed and a new version on CRAN now.
No changes here other than requiring the new version ofrvertnet
(#168)- Fix to internal INAT parsers to handle JSON data output instead of
CSV output. And fix to internal date parsing; INAT changed field for date
fromdatetime
toobserved_on
. - Move all
is()
toinherits()
, and namespace allsetNames()
calls - We are now using
rgbif::occ_data()
instead ofrgbif::occ_search()
- We are now using
rvertnet::searchbyterm()
instead of
rgbif::vertsearch()
BUG FIXES
- Fixes to iDigBio internal plugin - we were dropping scientificname
if geometry was passed by the user. Fixed now. (#167) - Fixed bug in GBIF internal plugin - when more than 1 result given back
(e.g., multiple searches were done, resulting in a list of objects)
we weren't parsing the output correctly. Fixed now. (#166)
spocc v0.5.0
NEW FEATURES
occ()
now allows queries that only passfrom
and one of the data
source opts params (e.g.,gbifopts
) - allows specifying any options
passed down to the internal functions used to do data queries without
having to use the other params inocc
(#163)
MINOR IMPROVEMENTS
- Now using
tibble
for representing data.frames (#164) - Now using explicit
encoding="UTF-8"
inhttr::content()
calls
to parse raw data from web requests (#160) - Now using
ridigbio
as its on CRAN - was using
internal fxns prior to this (#154)
BUG FIXES
- There was a problem in the ebird parser where it wasn't processing
results from ebird with no data. A problem withhas_coords
also
fixed. (#161)
v0.4.5
MINOR IMPROVEMENTS
- Using
data.table::setDF()
instead ofdata.frame()
to set adata.table
style table to adata.frame
- Added many more tests to make it less likely errors will occur
- Added
vertnet
as an option toocc_options()
to get the options for passing
tovertopts
inocc()
BUG FIXES
- Fix to
print.occdatind()
- which in last version introduced a bug in this
print method - wasn't fatal as only applied to empty slots in the output
of a call toocc()
, but nonetheless, not good (#159)
spocc v0.4.4
MINOR IMPROVEMENTS
- New import
data.table
for fast list to data.frame
BUG FIXES
- Fix to ecoengine spatial search - internally we were not making the
bounding box correctly - fixed now (#158)
spocc v0.4.0
NEW FEATURES
- New function
as.vertnet()
to coerce various inputs (e.g., result fromocc()
,occ2df()
, or a key itself) to occurrence data objects (#142) occ()
gains two parametersstart
andpage
to facilitate paging
through results across data sources, instead of having to page
individually for each data source. Some sources use thestart
parameter,
while others use thepage
parameter. See Paging section in?occ
for
details on Paging (#140)
MINOR IMPROVEMENTS
- Added Code of Conduct
BUG FIXES
wkt_vis()
now works with WKT polygons with multipe polygons, e.g.,
spocc::wkt_vis("POLYGON((-125 38.4, -121.8 38.4, -121.8 40.9, -125 40.9, -125 38.4), (-115 22.4, -111.8 22.4, -111.8 30.9, -115 30.9, -115 22.4))")
(#147)- Fix to
print.occdatind()
to print more helpful info when a
geometry search is used as opposed to a taxonomy based search (#149) - Fix to
print.occdatind()
to not fail when first element not present;
proceeds to next slot with data (#143) - Fixed problem where
occ()
failed when multiplegeometry
elements
passed in along with taxonomic names (#146) - Fix to
occ2df()
for combining outputs to not fail when AntWeb
doesn't give back dates (#144) (#145) - thanks @timcdlucas - Fix to
occ2df()
to not fail when date field missing (#141)
spocc 0.3.2
NEW FEATURES
MINOR IMPROVEMENTS
- Added much more detail on what parameters in child packages are being used inside of the
occ()
function. Each data source is taken care of in a separate package or set of wrapper functions, and the man file now details what API parameters are being queried (#138)
BUG FIXES
- Fixed bug where when latitude/longitude columns missing, caused problems downstream in printing outputs, etc. Now we put in NA's when those columns missing (#139)
- Fixed bug in inat data source -
Datetime
variable changed todatetime
- Fixed bug in vertnet data source -
occurrenceID
variable changed tooccurrenceid
spocc 0.3.0
NEW FEATURES
- Mapping functions all gone, and put into a new package
spoccutils
(https://github.com/ropensci/spoccutils) (#132) occ()
gains new parameterhas_coords
- a global parameter (except for ebird and bison) to return only records with lat/long data. (#128)type
(#134) andrank
(#133) parameters dropped fromocc()
- When object returned by
occ()
is printed, we now include a message that total count of records found (not returned) is not completely known if ebird is included, because eBird does not include data on records found on their servers with requests to their API (#111) - New functions
as.*()
(e.g.,as.gbif
) for most data sources. These functions take in occurrence keys or sets of keys, and retrieve detailed occurrence record data for each key (#112) - New data source: VertNet (#110)
occ2df()
now returns more fields. This function collapses all essential fields that are easy to get in all data sources:name
,lat
,long
,prov
,date
,key
. Thekey
field is the occurrence key for each record, which you can use to keep track of individual records, get more data on the record, etc. (#103) (#108)- New function
inspect()
- takes output fromocc()
or individual occurrence keys and gets detailed occurrence data.
MINOR IMPROVEMENTS
- Now importing packages:
jsonlite
,V8
,utils
, andmethods
. No longer importing:ggmap
,maptools
,rworldmap
,sp
,rgeos
,RColorBrewer
,rgdal
, andleafletR
. Pkgs removed mostly due to splitting off some functionality intospoccutils
. related issues: (#131) (#132) - Now importing explicitly all non-base R functions that we use: now importing
methods
,utils
(#120) - We now attempt to standardize dates across all data sources, and return that in the output of a call to
occ2df()
(#106) wkt_vis()
now only has an option to view a WKT shape in the browser.
BUG FIXES
- Fixes to being able to pass curl options on to each data source's functions (#107)
v0.2.4
MINOR IMPROVEMENTS
- Improved documentation for bounding boxes, their expected format, etc. (#96)
- Remove dependency on the following packages:
assertthat
,plyr
,data.table
, andXML
(#102) - Using package
gistr
now to post interactive geojson maps on GitHub gists (#100) rgbif
now must bev0.7.7
or greater (the latest version on CRAN).- Removed the startup message.
BUG FIXES
- Duplicate, but not working correctly, function
occ2sp()
removed. The functionocc_to_sp()
function is the working version. (#97) - Fixed bug where some records returned form GBIF did not have lat/long column headers, and we internally rearranged columns, which caused complete stop when that happened. Fixed now. (#101)
- Changed all
\donttest
to\dontrun
in examples as requested by CRAN maintainers (#99)
v0.2.2
NEW FEATURES
- Added new function
occ_names()
to search only for taxonomic names. The goal here is to use ths function if there is some question about what names you want to use to search for occurrences with. (#84). Suggested by @jarioksa - New function
occ_names_options()
to quickly get parameter options to pass toocc_names()
. - New
summary()
method for theoccdat
S3
object that is output fromocc()
(#83) - In many places in
spocc
(README, vignette,occ()
documentation file, at package startup), we make it clear that there could be duplicate records returned in certain scenarios. And a new documentation page detailing what to watch out for:?spocc_duplicates
. (#77)
MINOR IMPROVEMENTS
- All latitude/longitude column headers are now changed to latitude and longitude, whereas they use to vary from
latitude
,decimalLatitude
,Latitude
,lat
, anddecimal_latitude
. (#91) - Default is 500 now for the
limit
parameter inocc()
(#78) - You can now pass in
limit
to each functions options parameter, and it will work. Each data source can have a different parameter internally fromlimit
, but now internally withinspocc
, we allow you to uselimit
so you don't have to know what the data source specific parameter is. (#81) - There is a now a startup message to give information on the package (#79)
occ_options()
gains new parameterwhere
to print either in the console or to open man file in the IDE, or prints to console in command line R.