czso 0.5.0
- fix issue in
czso_get_table_schema()
detecting JSON format in schema URL - make less use of the stringi dependency
czso 0.4.1
CRAN release: 2024-07-20
- add new function
czso_filter_catalogue()
which provides an ergonomic search of the catalogue, searching relevant fields of the catalogue for a union of the search terms. - related to above,
czso_get_catalogue()
has a newsearch_terms
parameter, which filters the catalogue inline.
czso 0.4.0
- move to new CZSO API
- remove deprecated functions (all exported functions not starting with
czso_
)
czso 0.3.11
- fix documentation to avoid CRAN NOTEs
- handle invalid JSON in old CZSO API
- hard-deprecate old functions; they will be removed in the next version
czso 0.3.10
CRAN release: 2022-09-01
- update Roxygen2 version and rebuild documentation to handle CRAN validation of HTML manual
czso 0.3.9
CRAN release: 2022-03-09
- removed usethis dependency; messages now done by {cli}
- removed stringr dependency
- readded stringi dependency
czso 0.3.8
CRAN release: 2022-02-27
- On MacOS Monterey, native
curl
cannot reach https://www.czso.cz/, making it impossible for R to reach it. So on Monterey machines with the defaultcurl
configuration, all functions accessing the server will fail with a message instructing the user to set an option in .Renviron to resolve this issue. This is a temporary situation until the bug is fixed in MacOS or a fix is found in R that does not require the user to set environment variables.
czso 0.3.6
- update tests to fix CRAN failure due to unreachable provider server
- fixed minor bug in how multi-file archives are handled
czso 0.3.5
CRAN release: 2021-09-22
NOTE: there has been an unexpected change to the National Open Data Catalogue which caused problems with the dataset IDs returned by czso_get_catalogue()
. This release provides a temporary fix based on a patch to the API kindly provided by the Czech Statistical Office.
Future releases will handle the change in a more robust way once the final form of the catalogue API is determined by the CZSO.
Fixes to code that is currently not used but may be again as the dust settles:
- fix SPARQL query to return all datasets, incl. 2 that were not showing up compared to the official data catalogue web interface
- return label, rather than IRI, for temporal resolution, in the output of
czso_get_catalogue()
czso 0.3.3
- update SPARQL query to reflect new version of provider’s data catalogue
- fix bug in
czso_get_table()
(@jlacko) - add link in README to Awesome Official statistics list
czso 0.3.0
New features
- codelists (číselníky) can now be retrieved with
czso_get_codelist()
. This includes hierarchies between codelist items, and English versions where available
Improvements
- new
dest_dir
parameter inczso_get_[table|codelist]()
allows you to store downloaded data files in a custom location. This location can be set at script or user (.Rprofile) level by setting theczso.dest_dir
option. - improved UI: more informative and better formatted messages, hints and reminders about common mishaps
- documentation added in
czso_get_table()
on where to get definitions of indicators and variables used by CZSO. - more date-type columns are parsed and typed correctly
Bug fixes
- deprecated functions no longer used internally
- encoding guess no longer breaks on Linux (@jlacko)
czso 0.2.3
CRAN release: 2020-04-07
Fixes responding to CRAN feedback
- Description field of DESCRIPTION now contains a link to the data provider
- documentation in all functions now provide more detail on what the functions return
Other changes
-
czso_get_table_schema()
now throws error for non-JSON schema and includes URL in error message -
czso_get_table()
now writes files it cannot read with the right extension -
czso_get_dataset_doc()
returns URL only invisibly ifaction
is"open"
czso 0.2.2
Prep for CRAN
- add cran-comments.md
- fixed dplyr-related CHECK NOTE
- updated LICENSE for CRAN
- update URL in README
Bug fixes and minor improvements
- all functions accessing CZSO data now return helpful error if the dataset cannot be found
- fixed deprecation warnings to display correct package name
- added helpful error message for no access to the internet
- spelling corrections
- better error output when CZSO server returns error