Changelog
Source:NEWS.md
epidatr 1.3.0
Deprecations
-
pub_covidcast(),pub_covidcast_meta(),pub_fluview(),pub_fluview_clinical(),pub_fluview_meta(),pub_flusurv(),pub_meta(), andpvt_quidel()now warn that they use the V4 Epidata API. Starting in October 2026, it is tentatively deprecated in favor of the V5 API. Seevignette("migration-guide")for the V5 replacements. - The remaining V4 endpoints whose data sources are no longer updated (
pvt_cdc(),pub_covid_hosp_facility_lookup(),pub_covid_hosp_facility(),pub_covid_hosp_state_timeseries(),pub_delphi(),pub_dengue_nowcast(),pvt_dengue_sensors(),pub_ecdc_ili(),pub_gft(),pvt_ght(),pub_kcdc_ili(),pvt_meta_norostat(),pub_nidss_dengue(),pub_nidss_flu(),pvt_norostat(),pub_nowcast(),pub_paho_dengue(),pvt_sensors(),pvt_twitter(), andpub_wiki()) now emit a quieter informational note (not a warning) explaining that they are frozen rather than deprecated. They are not moving to V5 and will keep working, but will not receive new data. See the “Endpoints kept for historical reference” section ofvignette("migration-guide")for the full list.
Patches
-
epidata_snapshot()andepidata_archive()now issue one request per signal instead of joiningsignalswith a comma, which the cast-API server silently matched against nothing (#354). -
epidata_archive(report_time = ...)now sends thereport_time_queryAPI parameter; the server renamed it fromversion_query, which it now rejects. - Add a migration guide vignette (
vignette("migration-guide")) mappingpub_covidcastarguments and columns to the newepidata_snapshot/epidata_archivefunctions, and update the README and pkgdown reference to lead with the new API. - Parse
ci_lowerandci_upperdata columns for some signals. - Improve CSV parsing performance by reading bytes directly.
-
save_api_key()no longer errors when called outside a project; it falls back to the user.Renviron(#339). - Text fields are now always parsed as character; previously an all-NA column (e.g.
geocoded_statein thecovid_hospendpoints) came back as logical.
epidatr 1.2.4
CRAN release: 2026-06-02
Changes
- Added
epidata_aux()to fetch V5-API auxiliary data, either directly by source or by merging it ontoepidata_snapshot()/epidata_archive()output via a version-aware left join. When no key filters are supplied, it infers them from the base to keep the pull small. -
epidata_aux(),epidata_snapshot(), andepidata_archive()now accept per-key filters as named...arguments. Each key takes one or more values, sent server-side to shrink the download. - Improve documentation, including descriptions for
save_api_key()and endpoint parameters, and standardize parameter information (#324 and #334). - Modernize internal API architecture by migrating from
httrtohttr2. - Introduce a centralized validation system in
R/check.Rusingcheckmateto standardize input checking, date parsing, and API parameter formatting. - Refactor
epidata_callanddo_requestto usehttr2request objects, implement automatic GET-to-POST fallback, and add robust retry logic. - Improve file-level documentation by adding summary descriptors at the top of all R source files.
- Deprecate
debugandformat_typearguments infetch_args_list().
Features
- Added new
epidata,epidata_meta,epidata_snapshot, andepidata_archivefor accessing the Delphi V5 API. -
pub_covidcast_meta()gainedsignals,time_type, andgeo_typearguments for server-side filtering of the metadata results.
Patches
-
last_updateinpub_covidcast_metais now returned as aPOSIXctobject instead of an integer. - Improved efficiency of date parsing for API responses.
- Migrate HTTP requests from
httrtohttr2. - Update endpoint examples to skip execution when required API keys or internet connectivity are unavailable, ensuring cleaner
R CMD checkresults. - Add
lifecycletoDESCRIPTIONto properly manage function deprecations. - Extend
check_is_recentto support numeric date formats (#320).
epidatr 1.2.2
CRAN release: 2025-11-17
Patches
- Validate that
time_typeis one of “day” or “week” inpub_covidcast. - Validate that
time_typeis “week” when source is “nssp” inpub_covidcast. - Allow
hsa_ncias ageo_typeinpub_covidcast. - Allow
hsa_ncias ageo_typeinpub_covidcast_meta. -
pub_covidcast_metanow returnsmin_time,max_time,max_issueas integers rather than Dates. Because these fields can mix YYYYMMDD and YYYYWW values, we recommend you parse them yourself. - add new fields for
flusurvendpoint.
epidatr 1.2.1
CRAN release: 2025-03-20
Patches
- Fix so that
covidcast_epidata()will still print if fields are missing.
epidatr 1.2.0
CRAN release: 2024-06-20
Changes
- Improve handling of the
EPIDATR_USE_CACHEenvironment variable, allowing it to be any value convertable byas.logical()and handle the case when it can’t be converted. - Support more date formats in function to convert dates to epiweeks. Use
parse_api_datesince it already supports both common formats. #276 -
EPIDATR_USE_CACHEonly supported exactly “TRUE” before. Now it supports all logical values and includes a warning when any value that can’t be converted to logical is provided. #273 -
missingdoesn’t count default values as non-missing. If a user doesn’t passgeo_valuesortime_values(both of which default to"*"inpub_covidcast), ordates(inpub_covid_hosp_state_timeseries), the missing check fails. To avoid this, just don’t check missingness of those two arguments. -
fetch_args_listnow has anrefresh_cacheargument, which isFALSEby default.
epidatr 1.1.1
CRAN release: 2024-03-04
Patches
- Fix failure when passing
as_ofvalues inDateformat topub_covidcastwhile caching is enabled (#259). - For
pub_covidcastdata sourcenchs-mortality, parse dates asepiweekand expectepiweekinputs from user (#260). - Fix failure in
pub_covidcastwhen user doesn’t passgeo_valuesortime_values, even though those arguments have defaults (#268).
epidatr 1.1.0
CRAN release: 2024-02-29
Changes
-
pub_covid_hosp_state_timeseriesnow supports use of theas_ofparameter (#209). -
release_dateandlatest_updatefields are now parsed asDate, rather than as text. This change impacts several endpoints. -
get_auth_keyrenamed toget_api_key(#181). -
get_api_keyno longer reads from R options and only uses environment variables (#217). -
pvt_twitterandpub_wikinow usetime_typeandtime_valuesargs instead of mutually exclusivedatesandepiweeks(#236). This matches the interface of thepub_covidcastendpoint. - Updated the default
timeout_secondsto 15 minutes to allow large queries by default.
Features
- Function reference now displays commonly-used functions first (#205).
- Support
Dateobjects passed to version argumentsas_ofandissuesin endpoints (#192, #194). -
clear_cachenow handles positional arguments just likeset_cache(#197). -
set_api_keynow available to help persist API key environment variables (#181, #217). - All endpoints now support the use of “*” as a wildcard to fetch all dates or epiweeks (#234).
Patches
- Endpoints now fail when passed misspelled arguments (#187, #201).
-
pub_fluview_metafixed tofetchthe response automatically. -
pub_covid_hosp_state_timeseriesnow correctly parses theissuefield, instead of returning a missing value (#202). - In
pub_fluview_meta,latest_issuefield is now parsed as epiweek, rather than being parsed asDateand returning a missing value. -
set_cachecache size no longer runs into integer overflow (#189). - Improve line-wrapping of warning messages (#191).
- Fix documentation related to CRAN submission.
- Fix some errors from passing “” as a key.
- Fixed bug with NAs when parsing ints (#243).
epidatr 1.0.0
CRAN release: 2023-09-19
- Add
set_cacheand other caching functions. - Prefix all non-private endpoints with
pub_. - Update printing of
avail_endpointsto be more readable. - Update printing of
covidcast_epidata()to be more readable. - Update landing docs to be more friendly, add plots.
epidatr 0.9.0
- Major interface change: all endpoints now fetch by default.
- Make all
fetchfunction internal. - Change
fetchandfetch_*function interfaces now rely onfetch_args_list. - Added
fetch_args_listwhich returns a list of arguments to be passed tofetch.
epidatr 0.8.0
- Fix source name duplication bug in
covidcast_epidata. - Mark
covidcast_epidataas experimental and do not export it. - Change
covidcastargdata_sourcetosource. - Make
covidcastargsissues,lag, andas_ofmutually exclusive. - Make
covid_hosp_facility_lookupargsstate,ccn,city,zip, andfips_codemutually exclusive. - Update documentation to only refer to character or strings (not character vectors or character strings).
epidatr 0.7.1
- Update README.md for better onboarding.
- Consolidate the vignettes into one. Clean up the code, do not eval most examples.
epidatr 0.7.0
- Remove temporary code for API key transition.
- Add
timeout_secondsandreturn_emptyarguments tofetch().
epidatr 0.6.0
- The
fetch_{tbl,classic,df,json,csv}functions have been replaced by thefetch()function, which almost always returns a tibble, except when used with a limited number of older endpoints (such asdelphi()andmeta()), where it will output a nested list structure.