Changelog
Source:NEWS.md
spocc 1.2.3
CRAN release: 2024-03-06
Documentation
- Documented argument ‘scientificname’ in ‘obis_search()’ changed to ‘scientificName’.
- Documented argument ‘n’ in ‘spocc_objects()’ removed
DEFUNCT
-
datecollected
field flagged byridigbio
maintainers as inappropriate field–should beeventDate
. Seescrubr::fix_names()
(#263)
spocc 1.2.1
CRAN release: 2023-03-08
DEFUNCT
-
as.bison()
is now defunct. BISON API is being sunsetted, BISON data now available via GBIF (#252)
spocc 1.2.0
CRAN release: 2021-01-05
DEFUNCT
-
as.ecoengine()
is now defunct.ecoengine
R pkg wasn’t used, we used internal code, but sinceecoengine
R is archived since Feb 2020, probably best to remove here (#239)
MINOR IMPROVEMENTS
- using
wellknown
now instead ofwicket
for Well-known text manipulation (#235)
spocc 1.1.0
CRAN release: 2020-07-31
DEFUNCT
-
fixnames()
is now defunct. it was deprecated in a previous version. Seescrubr::fix_names()
(#231)
NEW FEATURES
-
occ()
can now handle sf objects passed togeometry
.spocc
itself does not import/suggest sf, but uses some code donated by Michael Sumner to pull out well known text (WKT) needed for spatially defined queries
BUG FIXES
- Fix for ALA data source in
occ()
: total records found count was always 0 because ALA changed the records found field tototalRecords
- Fix for Vertnet data source in
occ()
: was using an old parameterquery
passed torvertnet::searchbyterm()
- changed toscientificname
instead
spocc 1.0.8
CRAN release: 2020-02-11
BUG FIXES
- fix tests that are failing on cran checks (#225)
- fix ecoengine data option: an
if
statement was failing because we were trying to access an element of a list that is not there sometimes, leading toNULL
which caused theif
statement to fail
spocc 1.0.2
CRAN release: 2019-11-02
BUG FIXES
- preserve exact bytes for some tests that are failing on cran checks, taxize integration tests, and identifier based search tests (#221)
spocc 1.0.0
CRAN release: 2019-10-22
MINOR IMPROVEMENTS
- tests now using vcr (#209)
- add notes in section
iNaturalist notes
in the?occ
manual page for help with iNaturalist pagination and rate limiting (#215) - vignette title fix for docs pages (#200)
-
tibble::data_frame
/tibble::as_data_frame
replaced bytibble::tibble
/tibble::as_tibble
throughout package
DEPRECATED
-
fixnames()
is now deprecated; still useable here until the next version released; please move to usingscrubr::fix_names
(#196)
BUG FIXES
- fix inat data source for
occ()
queries: change from http to https for the inat base url (#213) - inat fixes: use rbind fill approach for combining rows of data to fill missing columns safely; work with newer version of their API; unnest lat/lon results into tidy column in resulting data.frame (#215)
- OBIS API changed; changed internals for OBIS data in line with the new API; note that pagination for OBIS has changed (see
?occ
for details);as.obis.numeric
is gone and replaced withas.obis.character
(#218) - fix to
fixnames()
, coerce taxon name to character in case the name is factor class (#211)
spocc 0.9.0
CRAN release: 2018-11-15
NEW FEATURES
-
occ()
now attempts to collect errors from requests that fail and puts these error messages (character strings) in the$meta$errors
spot. We can not always collect errors, and some data providers do not error well: they do not provide a meaningful error message other than that there was an error. (#189) (#207) -
occ()
gains new parameterthrow_warnings
(logical). By default set toTRUE
(matches previous behavior) and throws warnings about errors that occur and when no results found for a query. We now prefix each warning with the data provider so you can match up an error or warning with a data provider and (hopefully) query. If set toFALSE
, warnings are suppressed (#189) (#207)
BUG FIXES
- fixes to ebird internals - a new version of
rebird
on CRAN requires a few changes in parameters used. Importantly, ebird now wants species codes instead of full scientific names, but we internally attempt to handle this, so users still just pass scientific names (#205)
DOCUMENTATION
- make pkgdown docs better: organize functions into meaningful sets (#193) (#197) (#199)
- in the
?spocc_duplicates
manual file for duplicate records, refer toscrubr
andCoordinateCleaner
packages (#198) - in
inspect()
manual file, clarify what the function does (#194) - now we document better when we use one or the other function for BISON data source (#204)
-
occ()
gains areturn
block with detail about what’s returned from the function (#208)
spocc 0.8.0
CRAN release: 2018-07-05
BUG FIXES
- fix to idigbio geometry queries (#180)
- fix
print.occdatind
so that empty data.frame’s don’t throw tibble warnings (#184) - fix to internal method for standardizing dates
stand_dates()
due to ALA giving back a timestamp now (#182) (#185) - vertnet fixes (#179)
- fix to geometry bounding box queries (#187) thanks @timcdlucas
- fix to output of list names for gbif data source when using taxonomic IDs, was resulting in booleans, should be the taxonomic IDs (#191)
spocc 0.7.0
CRAN release: 2017-04-21
NEW FEATURES
- Removed javascript and V8 package import and using
wicket
C++ based package instead. So you no longer need V8 which should make installation easier on some platforms. (#172)
MINOR IMPROVEMENTS
-
httr
replaced withcrul
for HTTP reqeusts (#174) - Moved to using markdown for docs. The only thing you should notice that’s different now is doing curl options is slightly different - it’s just
curl::curl_options()
(#176) - All
as.*()
functions can now pass on curl options to the http client (#177) - Bumped minimum versions for a number of dependencies
BUG FIXES
- Fix to
foo_ala()
- the internal plugin forocc()
that handles ALA queries: changed query from full text query usingq=foo bar
toq=taxon_name="foo bar"
- in addition, improved error handling as sometimesoccurrences
slot is returned in results but is empty, whereas before it seemd to always be absent if no results (#178)
spocc 0.6.0
CRAN release: 2016-12-07
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)
spocc 0.5.4
CRAN release: 2016-10-08
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 from
datetime
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 ofrgbif::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 0.5.0
CRAN release: 2016-04-23
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 with
has_coords
also fixed. (#161)
spocc 0.4.5
CRAN release: 2016-01-27
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 0.4.4
CRAN release: 2016-01-23
BUG FIXES
- Fix to ecoengine spatial search - internally we were not making the bounding box correctly - fixed now (#158)
spocc 0.4.0
CRAN release: 2015-10-02
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)
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
CRAN release: 2015-09-12
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
CRAN release: 2015-07-04
NEW FEATURES
- Mapping functions all gone, and put into a new package
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)
spocc 0.2.4
CRAN release: 2015-01-22
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)
spocc 0.2.2
CRAN release: 2014-10-24
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.
spocc 0.2.0
CRAN release: 2014-08-06
NEW FEATURES
-
occ()
gains new parametercallopts
to pass on curl debugging options tohttr::GET()
(#35) -
wkt_vis()
now by default plots a well known text area (WKT) on an interactive mapbox map in your default browser. New parameterwhich
allows you to choose the interactive map or a static ggplot2 map. (#70) - Individual data sources
occ()
gains new class. In the previous version of this package, adata.frame
was printed. Now the data is assigned the objectoccdatind
(short for occdat individual). -
occ()
now uses a print method for theoccdatind
class, adopted fromdplyr
that prints a briefdata.frame
, with columns wrapped to fit the width of your console, and additional columns not printed given at bottom with their class type. Note that the print behavior for the resulting object of anocc()
call remains the same. (#69) (#74)
MINOR IMPROVEMENTS
- Added
whisker
as a package import to use in thewkt_vis()
function. (#70) - Mapping functions now all accept the same input. Previously
mapggplot()
accepted the output ofocc()
, of classoccdat
, while the other two functions for mapping,mapleaflet()
andmapgist()
accepted adata.frame
. Now all three functions accept the output ofocc()
, an object of classoccdat
. (#75) - The
meta
slot in each returned object (indexed byobject$meta
) contains spots forreturned
andfound
, to designate number of records returned, and number of records found. (#64)
BUG FIXES
- Fixed bug in AntWeb output, where there was supposed to be a column titled
name
. (#71)
spocc 0.1.4
CRAN release: 2014-06-25
NEW FEATURES
- Can now do geometry only queries. See examples in
occ()
. - In addition, you can pass in sp objects of SpatialPolygons or SpatialPolygonsDataFrame classes.
spocc 0.1.2
CRAN release: 2014-05-02
NEW FEATURES
- There were quite a few changes in one of the key packages that
spocc
depends on:rgbif
. A number of input and output parameter names changed. A new version ofrgbif
was pushed to CRAN. (#56) - New function
clean_spocc()
started (not finished yet) to attempt to clean data. For example, one use case is removing impossible lat/long values (i.e., longitue values greater than absolute 180). Another, not implemented yet, is to remove points that are not in the country or habitat your points are supposed to be in. (#44) - New function
fixnames()
to trim species names with optional input parameters to make data easier to use for mapping. - New function
wkt_vis()
to visualize a WKT (well-known text) area on a map. Usesggmap
to pull down a Google map so that the visualization has some geographic and natural earth context. We’ll soon introduce an interactive version of this function that will bring up a small Shiny app to draw a WKT area, then return those coordinates to your R session. (#34)
MINOR IMPROVEMENTS
- Added a CONTRIBUTING.md file to the github repo to help guide contributions (#61)
- Packages that require a certain version are forced to be X version or greater. Thes are rinat (>= 0.1.1), rbison (>= 0.3.2), rgbif (>= 0.6.2), ecoengine (>= 1.3), rebird (>= 0.1.1), AntWeb (>= 0.6.1), and leafletR (>= 0.2-0). This should help avoid problems.
- General improvement to function documentation.