eurostat 3.8.3 (2023-03-07)
Bug fixes
- Fix date handling bug in the
get_eurostat_json()
andeurotime2date()
functions (issue #251, reported by @lz1nwm). Theget_eurostat_json()
function uses the temporaryeurotime2date()
function for date handling until the old bulk download API is deprecated.
eurostat 3.8.2 (2023-03-06)
CRAN release: 2023-03-06
Minor updates
- use
curl::curl_download
on Windows platforms instead ofutils::download.file
as the latter causes the following error: “error reading from the connection […] invalid or incomplete compressed data”. This affects only files downloaded from the new API.
eurostat 3.7.14 (2023-02-22)
Major updates
- Updated
get_eurostat()
and its assorted functions to download data from the new dissemination API (related to issues #251, #243). See Eurostat web page Transition - from Eurostat Bulk Download to API for a list of differences between old and new data sources: https://wikis.ec.europa.eu/display/EUROSTATHELP/Transition+-+from+Eurostat+Bulk+Download+to+API - Added new temporary functions for downloading and handling data from the new dissemination API:
get_eurostat_raw2
,tidy_eurostat2
,convert_time_col2
,eurotime2date2
,eurotime2num2
andlabel_eurostat2
. When the old bulk download facilities are decommissioned, these functions will replace the old functions with old naming schemes (without the 2s at the end). -
tidy_eurostat2
function is now able to handle multiple time frequencies in one call: For example, you can download annual, quarterly, and monthly data simply by using a vector c(“A”, “Q”, “M”) in select_time instead of using these singular frequencies in separate calls. The function will also return multiple time series in one dataset if select_time is NULL (as it is by default). If the dataset contains multiple time series and these are explicitly downloaded / no select_time parameter is given, a message will be printed. -
eurotime2num
can now handle monthly and weekly data as well. - Added a new parameter to
get_eurostat()
function: legacy_bulk_download (default = TRUE). By setting this parameter to FALSE the user can download data from the new dissemination API. If you want to test the new API before it becomes the only way to download the data (and we very much encourage you to do so), set this parameter to FALSE.
eurostat 3.7.13 (2023-02-01)
- Updated
get_eurostat_json()
to migrate from JSON web service to API Statistics (addressed in issues #243, #251). Please note that the output from JSON API is now slightly different than before: the datasets now contain a freq column to indicate the frequency with which data has been collected, for example annually “A”, monthly “M” or quarterly “Q”. See Eurostat - Data browser online help website for more information: https://wikis.ec.europa.eu/display/EUROSTATHELP/API+Statistics+-+migrating+from+JSON+web+service+to+API+Statistics - Minor fixes in
get_bibentry()
andget_eurostat_geospatial()
eurostat 3.7.12 (2022-06-28)
- Updated included dataset
eurostat_geodata_60_2016
to fix the issue of old-style crs object (#237) - Added information about different variables in
eurostat_geodata_60_2016
so that the dataset is more understandable and usable for testing purposes. Added the same information toget_eurostat_geospatial()
documentation as well. - Added the GISCO copyright disclaimer to
eurostat_geodata_60_2016
andget_eurostat_geospatial()
documentation. - Get rid of unnecessary “No encoding supplied: defaulting to UTF-8.” messages in
get_eurostat_geospatial()
by setting content encoding to UTF-8 whenhttr::content()
function is called - dplyr and tidyr namespaces are no longer imported completely, only selected few functions with importFrom
eurostat 3.7.9 (2020-10-01)
- Function documentation migrated from old
\code{}
,\link{}
syntax to markdown (issue #230, PR #231 by @dieghernan)
eurostat 3.7.8 (2020-09-30)
- Package cache management updated:
options()
command is no longer needed and the cache dir can be modified persistently with a custom function (issue #223, PR #228 by @dieghernan)
eurostat 3.7.6 (2021-05-20)
- Deprecated
add_nuts_level()
,harmonize_geo_code()
,recode_to_nuts_2016()
andrecode_to_nuts_2013()
; these functions were moved to the new package regions. The problem of sub-national geo codes is explained in the new vignette “Mapping Regional Data, Mapping Metadata Problems”, which replaces the “Regional data examples for the eurostat R package” vignette. This is a shared vignette, but the new regions package has more articles on how to work with sub-national data. (issues #218 and #219, PR #220 by @antaldaniel)
eurostat 3.7.5 (2020-05-12)
CRAN release: 2021-05-14
- Moved sf from Imports to Suggests and made
get_eurostat_geospatial()
return a message if sf is not installed. This is to increase compatibility of eurostat-package on systems that have trouble installing sf (issue #213) - Wrapped some problem causing examples to
\dontrun{}
for a quick CRAN release
eurostat 3.7.2
- Non-intersecting sf-geometries in get_eurostat_geospatial (PR #202 by @retostauffer)
eurostat 3.6.3 (2020-04-21)
- Stabilized http requests (PR by @annnvv)
eurostat 3.3.3
- Countries and Country Codes data.frames get label column for country names in the Eurostat database.
- Fixed vignette duplicate entry issue and smaller issues
- Added get_bibentry
eurostat 3.3.1
CRAN release: 2018-11-24
- The
label_eurostat()
has new countrycode and countrycode_nomatch arguments to label with countrycode package and custom_dic argument to add custom dictionary. - Vignette updated
eurostat 3.1.5
CRAN release: 2017-08-09
Minor features
- Added new example data set to reduce repeated downloads from eurostat service
- Now
label_eurostat()
gives always an error by default, if labelling introduces duplicated labels. A newfix_duplicated
argument is add to fix duplicated labels automatically. (#79, #90) - Shrinked the package tarball size
eurostat 3.1.1
CRAN release: 2017-03-16
R Journal submission
- Release version associated with the R Journal manuscript 2017 final version
- Git release added with Zenodo DOI
Minor features
- Changed maintainer email address from louhos to leo
- Added ./docs/ (automated package website generated with pkgdown)
- Expanded unit tests
- Gitter badge added to README
- Added ./revdep/ to check possible reverse dependencies automatically
- Cheat sheet added
Bug fixes
-
search_eurostat()
accepts new argumentfixed
: ifTRUE
(default),pattern
provided will used as is; ifFALSE
,pattern
will be interpreted as a true regex pattern. - Augmented the list of Suggested packages in the DESCRIPTION file, including the Cairo package (#70)
- Updated the journal manuscript based on reviewer feedback
eurostat 2.0
- The
get_eurostat()
returns tibbles (#52) - The
get_eurostat_dic()
andget_eurostat_toc()
return tibbles - Now
read_tsv()
is used instead ofread.csv()
(#29)
eurostat 1.2.22
- The European Commission and the Eurostat generally uses ISO 3166-1 alpha-2 codes with two exceptions: EL (not GR) is used to represent Greece, and UK (not GB) is used to represent the United Kingdom. This now can be handled with
harmonize_country_code()
which converts the raw data values from EL to GR and from UK to GB. - Harmonized roxygen documentation to better follow CRAN conventions
- Changed Windows encoding to UTF for input files
- Improved memory usage
eurostat 1.2.21
CRAN release: 2016-03-11
- The
get_eurostat()
can now get data also from the Eurostat JSON API viaget_eurostat_json()
. It also have a new argumenttype
to select labels for variable values instead of codes. - Fix an error after update to
tidyr 0.4.0
(#47).
eurostat 1.2.13
CRAN release: 2016-01-19
- New
select_time
argument forget_eurostat()
to select a time frequency in case of multi-frequency datasets. Now theget_eurostat()
also gives an error if you try to get multi-frequency with other time formats thantime_format = "raw"
. (#30)time
column is also now in ascending order. -
get_eurostat()
gets a new argumentcompress_file
to control compression of the cache file. Also cache filenames includes now all relevant arguments. (#28) - For
search_eurostat()
a new type optiontype = "all"
to search all types. - For
label_eurostat()
new arguments. Acode
to retain also codes for spesified colums. Aeu_order
to order factor levels in Eurostat order, which uses the new functiondic_order()
. - Now
label_eurostat_vars(x)
gives labels for names, if x is other than a character or a factor andlabel_eurostat_tables(x)
does not accept other than a character or a factor. - For
get_eurostat()
a new argumentstringsAsFactors
to control the factor conversion of variables. -
eurotime2date
(andget_eurostat
) convers now also daily data.