Recent Releases of bcdata
bcdata - bcdata 0.5.1
- Fix bugs where
bcdc_search_facets(),bcdc_list_group_records()andbcdc_list_organization_records()were not returning all records after the upgrade to CKAN 2.9 (#353). Includes adding tests and bcdata-specific options for these queries, seebcdc_options(). - Added examples of partial query using
%like%and%in%inbcdc_query_geodata()(#356, thanks @bevingtona).
Scientific Software - Peer-reviewed
- R
Published by ateucher 11 months ago
bcdata - bcdata 0.5.0
- Make functions more robust to non-functioning WMS/WFS GetCapabilities requests (#339, #341).
- dbplyr 2.5.0 has made the requirement for using
!!orlocal()for local functions more restrictive; updated tests and examples (#341). - Deprecate the
bcdata.single_download_limitoption, as it was mostly redundant withbcdata.chunk_limit, and should always be set by the server. Please set the page size limit for paginated requests via thebcdata.chunk_limitoption (#332). - Updated internals to adapt to changes in B.C. Data Catalogue (#342, #343).
Scientific Software - Peer-reviewed
- R
Published by ateucher about 1 year ago
bcdata - bcdata 0.4.1
- Add
jsonlite::read_json()as a file read method, so users can now download & readjsonresources in B.C. Data Catalogue records - Change the
download_audiencedefault fromPublictoNULLinbcdc_search()(#315) - Fix bug where some/all facet values in
bcdc_search()need to be quoted to generate a valid API query (#315) - Add new functions
bcdc_list_organizationsandbcdc_list_organization_recordsas helper functions for finding records #322
Scientific Software - Peer-reviewed
- R
Published by ateucher almost 3 years ago
bcdata - bcdata 0.4.0
User-facing changes
- For WFS queries constructed using
bcdc_query_geodata(), function calls infilter()that need to be evaluated locally are no-longer auto-detected. They now need to be wrapped inlocal()to force local evaluation before theCQLquery is constructed and sent to the WFS server. Please seevignette("local-filter")for more information. This aligns with recommended usage patterns in otherdbplyrbackends (#304, PR #305).
Scientific Software - Peer-reviewed
- R
Published by ateucher about 3 years ago
bcdata - bcdata v0.3.2
- Fixed a test that was failing when no internet was available
- Upgraded to
dbplyredition 2, bumped dependency to2.0.0(#300)
Scientific Software - Peer-reviewed
- R
Published by ateucher over 3 years ago
bcdata - bcdata 0.3.1
- Added
bcdc_get_citationto generate bibliographic entries (viautils::bibentry) for individuals records. #273 - Results from
bcdc_search()(objects of class"bcdc_recordlist") now print 50 records by default, instead of 10. In addition, there is a new[method for"bcdc_recordlist"objects, allowing you to subset these lists and still have a nice printout (#288). - Ensure that
bcdc_get_data()fails informatively when a given resource doesn't exist in a record (#290) - Ensure compatibility with upcoming
dbplyr 2.2.0(#297, 82b9defa376ab)
Scientific Software - Peer-reviewed
- R
Published by ateucher over 3 years ago
bcdata - bcdata 0.3.0
- The BC Data Catalogue and its API have been updated, requiring changes to the
bcdatapackage, most of which are internal only (#283). These should be mostly invisible to the user, except for the removal of thetypesearch facet inbcdc_search()andbcdc_search_facets(). If you use an API key (authorized catalogue editors only), you will need to login to the new catalogue and get your updated key and set the value yourBCDC_KEYenvironment variable to the new key.
IMPROVEMENTS
- Add
namesmethod forbcdc.promiseobjects. You can now callnameson an object produced bybcdc_query_geodata. This is handy when trying to figure out exact column spelling etc. #278
BUG FIXES
- Fix bug where sticky column were incorrectly identified in
bcdc_describe_feature(#279)
Scientific Software - Peer-reviewed
- R
Published by ateucher over 4 years ago
bcdata - bcdata 0.2.4
- Code in
.onLoad()that sent a request to the wfs getCapabilities endpoint could cause the package to fail to load. This was moved into an internal functionbcdc_get_capabilities()that makes the request the first time it's required, and stores the result for the remainder of the session (#271) - testthat is now used conditionally to only run tests if the testthat package is installed.
Scientific Software - Peer-reviewed
- R
Published by ateucher almost 5 years ago
bcdata - bcdata 0.2.3
IMPROVEMENTS
- Setting the
bcdata.single_download_limitlimit dynamically from the getCapabilities endpoint. #256 bcdc_describe_featurenow joins an object description column to the returned object to provide more information about a field directly in R. #241, #259- Better documentation and information surrounding the
bcdata.max_geom_pred_sizeoption. #243, #258 - Add new function
bcdc_check_geom_sizeso users can check prior to submitting a WFS request withfilterto see if the request will require a bounding box conversion. #243, #258 - Better documentation and messaging about when and why paginated requests are required by
bcdc_query_geodata(). #240, #264 - Better documentation and print method for what records are suitable for use with
bcdc_query_geodata(). #265, #267
Scientific Software - Peer-reviewed
- R
Published by ateucher almost 5 years ago
bcdata - bcdata 0.2.2
IMPROVEMENTS
- Added
bcdc_list_groupsandbcdc_list_group_recordsto provide the ability to query on the group endpoint of the catalogue API. #234 - Added new option
bcdata.single_download_limitto enable setting the maximum number of records an object can be before forcing a paginated download (#252)
BUG FIXES
- Fixed bug in
collect.bcdc_promisewhere the wrong parameter name incrul::Paginator$new()resulted in an error in paginated wfs requests (#250, thanks @meztez) - Fixed a bug where the name of
bcdata.chunk_limitoption had a typo, so that it was not actually used properly (#252)
Scientific Software - Peer-reviewed
- R
Published by boshek almost 5 years ago
bcdata - bcdata 0.2.1
BUG FIXES
- Remove link for pipe documentation for simplicity.
- Fixed bug where using many
as.functions (e.g.,as.Date(),as.character(),as.numeric()) in a filter statement would fail. (#218, #219)
MAINTENANCE
- Updated internal SQL translation to use
DBIS4 generics (DBI::dbQuoteIdentifier()is now used instead ofdbplyr::sql_escape_ident()andDBI::dbQuoteString()instead ofdbplyr::sql_escape_string()), to comply with upcomingdbplyr2.0 release (#225, #225; https://github.com/tidyverse/dbplyr/issues/385) - Wrapped all examples that call web resources in
try()to avoid spurious check failures (#229).
Scientific Software - Peer-reviewed
- R
Published by ateucher over 5 years ago
bcdata - bcdata 0.2.0
bcdata 0.2.0
BREAKING CHANGES
- Rename
selectablecolumn frombcdc_describe_featuretostickyand modify corresponding docs and tests (#180).
IMPROVEMENTS
- Add explore-silviculture-data-using-bcdata vignette/article. h/t @hgriesbauer
- Add
headandtailmethods forbcdc.promiseobjects. Thanks to @hgriesbauer for the suggestion! (#182, #186) - Provide
as_tibbleas an alias forcollectin line withdbplyrbehaviour (#166) - Geometry predicates can now take a
bboxobject as well as ansf*object (#176) - When reading in excel files,
bcdc_get_datanow outputs a messages indicating the presence and names of any sheets (#190) bcdc_get_data()&bcdc_query_geodata()will now work with full B.C. data catalogue url including resource (#125, #196)bcdc_sfobjects now have antime_downloadedattribute- Authorized B.C. Data Catalogue editors can now authenticate with the catalague by setting
a
BCDC_KEYenvironment variable with their catalogue API token (https://github.com/bcgov/bcdata#bcdc-authentication; #208).
BUG FIXES
- Fix
select,filterandmutateroxygen so that bcdata specific documentation to these methods is available - Add tests for attributes
Scientific Software - Peer-reviewed
- R
Published by boshek over 5 years ago
bcdata - 0.1.2
bcdata 0.1.2
IMPROVEMENTS
- Add
bcdc_tidy_resourcesfor retrieving a data frame containing the metadata for all resources from a single B.C. Data Catalogue record (PR#149, #147) - Add a more decorative record print method (#73)
- More reliable detection of layer name for a wfs call in
bcdc_query_geodata()(#129, #138, #139) - Add
mutatemethod for bcdc_promise that only fails and suggest an alternative approach. (PR#134) - Add back in querying vignette
- Using
tidyselectso thatselect.bcdc_promisebehaviour is typical ofdplyr::select($140, #138) - Using GitHub actions for CI.
MINOR BREAKING CHANGES
- Remove
BEYOND()andRELATE()geometry predicates as they are currently not fully supported by geoserver
BUG FIXES
- Now precompiling vignettes so that queries are submitted locally and no actually requests are made from CRAN (#151)
- Fix
NOTE: Namespace in Imports field not imported from: ‘methods’error on CRAN (#145) - Fixed a bug where functions nested inside geometry predicates were not evaluated (#146, #154)
- Fixed a bug where
DWITHINwasn't working becauseunitsneeded to be unqoted (#154) - Fixed a bug where
BBOX()used in afilter()statement combined withbcdc_query_geodata()did not work (#135, #137, #131) - Fixed a bug where layer names with a number in them would not work in
bcdc_query_geodata()(#126, #127)
Scientific Software - Peer-reviewed
- R
Published by boshek about 6 years ago
bcdata - bcdata 0.1.1
bcdata 0.1.1
- Initial CRAN release
- Expand and standardize checking w[ms]f features to make package more resistant to slight warehouse API changes.
- Data retrieval functions now work with BCGW name (#106)
- Add CITATION file (#104)
- Increased test coverage (#112)
- Skipping all tests on CRAN that require a web connection
- Better and more informative error message when experiencing http failures occur (#121)
- Added print methods for
show_query - Change examples to donttest
- Added verbose argument to
bcdc_get_recordto enable supressing console writing
Scientific Software - Peer-reviewed
- R
Published by ateucher over 6 years ago