ckanr 0.7.0
CRAN release: 2023-03-17
NEW FEATURES
-
resource_update()allows update of resource extra fields by making thepathparameter optional (#175) thanks @nicholsn
ckanr 0.6.0
CRAN release: 2021-02-03
NEW FEATURES
- parameter
http_methodgained inresource_create(),package_update(), andpackage_patch(); it’s passed toas.ckan_package()internally, but does not affect the HTTP request for the main point of the function (#163) thanks @hannaboe - gains new function
organization_purge()to purge an organization (which requires sysadmin) (#166) thanks @nicholsn
MINOR IMPROVEMENTS
- update URLs for known CKAN instances behind the
servers()function (#162) (#167) (#170) - .Rbuildignore README.md and vignettes (#171)
-
extrasnow passed in HTTP request inpackage_create()as a top level part of the request body rather than as a namedextraselement (#158) thanks @galaH - change in
ckan_fetch(): now when a zip file has a subdirectory anNAis returned rather thancharacter(0)(#164) - change in the
...parameter inckan_fetch(): was used to pass through curl options to the http request but now is used to pass through additional parameters to eitherread.csv,xml2::read_xml,jsonlite::fromJSON,sf::st_read(),read.table(), orreadxl::read_excel(#165) - updated docs for
package_create()andgroup_create()- changegroupsparameter description to explain what kind of input is expected (#168) - updated docs for
package_update()andresource_update()- illustrate possible data loss when updating with incomplete package metadata (#108)
ckanr 0.5.0
CRAN release: 2020-07-30
NEW FEATURES
-
package_create()gains parameterprivate(boolean) (#145) - add support for resource extras.
resource_create()andresource_update()gain new parameterextras, whileresource_patch()function doesn’t change but gains an example of adding an extra (#149) (#150) thanks @nicholsn -
package_patch()gainsextrasparameter (#94) see also (#147)
MINOR IMPROVEMENTS
- replace httr with crul throughout package (#86) (#151)
- use markdown for docs (#148)
-
package_patch(),package_show(),package_activity_list(),package_delete(),package_update(), andrelated_create()now pass onkeyparameter value toas.ckan_packageinternally; same forresource_create()andresource_show(), but passed toas.ckan_resource()(#145) (#146) -
servers()gains two additional CKAN urls (#155) -
package_show()calledas.ckan_package()within it, which itself callspackage_show()- fixed now (#127)
BUG FIXES
- fix for
resource_search()andtag_search: both were not allowing a query to be more than length 1 (#153) - fix for
print.ckan_package: wasn’t handling well results frompackage_search()that had a named list of locale specific results (#152)
ckanr 0.4.0
CRAN release: 2019-10-11
NEW FEATURES
-
ckan_fetch()gains parameterkeyfor a CKAN API key; if given the API key is now included in the request headers (#133) see also (#122) by @sharlagelfand -
ckan_fetch()gains ability to read xls/xlsx files with multiple sheets (#135) by @sharlagelfand
MINOR IMPROVEMENTS
-
ckan_fetch()now setsstringsAsFactors = FALSEwhen reading data (#141) (#142) thanks @LVG77 @sharlagelfand - in
ckan_fetch(), usebasename(x)instead ofgsub(paste0(tempdir(), "/"), "", x), to get file path (#140) by @sharlagelfand - in
package_search()handle better cases where the CKAN version can not be determined (#139) && fix logic for whendefault_schemaandinclude_privateparameters are included based on the CKAN version (#137) by @sharlagelfand - improve
ckan_fetch(): old behavior of the fxn with zip files was that it only worked if the zip file contained shp files; works more generally now, e.g., a zip file containing a csv file (#132) by @sharlagelfand - fix
ckan_fetch()examples that weren’t working (#134) by @sharlagelfand - fix to parsing CKAN version numbers, new internal fxn
parse_version_number()- now properly parses CKAN version numbers that include patch and dev versions (#136) by @sharlagelfand
ckanr 0.3.0
CRAN release: 2019-07-23
NEW FEATURES
- new package author Sharla Gelfand !!!
- new functions for users:
user_create()anduser_delete()(#82) -
package_show()gainskeyparameter to pass an API key (#97) -
package_search()gains new parameters:include_drafts,include_private,use_default_schema, andfacet.mincount(#107) - function
fetch()changed tockan_fetch() - gains function
organization_delet()to delete an organization (#83) - gains function
ckan_version()to get version info for a CKAN instance - gains methods for creating a CKAN remote instance as a dplyr backend: gains
src_ckan()and it’s s3 methodstblandsrc_tbls,sql_translate_env. in addition gains the S3 methodsdb_begin,db_explain,db_has_table,db_insert_into,db_query_fields,db_query_rows
MINOR IMPROVEMENTS
- fix some tests (#62)
- fix to
ds_create()to properly format body with json data (#85) thanks @mattfullerton - tests added for
ckan_fetch()(#118) thanks @sharlagelfand -
ckan_fetch()gainsformatparameter if the user knows the file format (useful when the file format can not be guessed) (#117) thanks @sharlagelfand -
ckan_fetchgain support for handling geojson (#123) thanks @sharlagelfand -
ckan_fetchwas writing to current working directory in some cases - fixed to writing to temp files and cleaning up (#125) (#128) (#129) thanks @sharlagelfand - add USDA CKAN instance to the
servers()function (#68) -
ds_create_dataset()marked as deprecated; seerecourse_create()instead (#80) (via #79) - removed the internal
stop()call intag_create(): now can be used, though haven’t been able to test this function as you need to be a sysadmin to use it (#81) -
ds_search(): code spacing fixes (#69) -
resource_update()gains more examples and tests (#66) - CKAN API key standardization:
keyparameter now in all fxns that make http requests - and reordering ofurlandkeyparams in that order across all functions (#122) (#124) - repair ORCID links in DESCRIPTION file (#124) by Florian
BUG FIXES
- fix to
resource_create():uploadparam was inappropriately a required param (#75) thanks @mingbogo - fixes to
resource_update(): date sent inlast_modifiedin request body needed to be converted to character (#96) (thanks @jasonajones73); and the date format needed fixing (#119) (thanks @florianm) - fix to
ckan_fetch()- usesfinstead ofmaptools; in additionckan_fetchcan now parse xlsx files in addition to xls files; (#114) (#115) thanks @sharlagelfand - fix to
package_search(): this route fails if parameters that did not exist in the CKAN instance are given; internally remove parameters as needed from query params by pinging the CKAN instance for its version (#120)
