Changelog
Source:NEWS.md
epidatr 1.2.0
CRAN release: 2024-06-20
Changes
- Improve handling of the
EPIDATR_USE_CACHE
environment 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_date
since it already supports both common formats. #276 -
EPIDATR_USE_CACHE
only 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 -
missing
doesn’t count default values as non-missing. If a user doesn’t passgeo_values
ortime_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.
epidatr 1.1.1
CRAN release: 2024-03-04
Patches
- Fix failure when passing
as_of
values inDate
format topub_covidcast
while caching is enabled (#259). - For
pub_covidcast
data sourcenchs-mortality
, parse dates asepiweek
and expectepiweek
inputs from user (#260). - Fix failure in
pub_covidcast
when user doesn’t passgeo_values
ortime_values
, even though those arguments have defaults (#268).
epidatr 1.1.0
CRAN release: 2024-02-29
Changes
-
pub_covid_hosp_state_timeseries
now supports use of theas_of
parameter (#209). -
release_date
andlatest_update
fields are now parsed asDate
, rather than as text. This change impacts several endpoints. -
get_auth_key
renamed toget_api_key
(#181). -
get_api_key
no longer reads from R options and only uses environment variables (#217). -
pvt_twitter
andpub_wiki
now usetime_type
andtime_values
args instead of mutually exclusivedates
andepiweeks
(#236). This matches the interface of thepub_covidcast
endpoint. - Updated the default
timeout_seconds
to 15 minutes to allow large queries by default.
Features
- Function reference now displays commonly-used functions first (#205).
- Support
Date
objects passed to version argumentsas_of
andissues
in endpoints (#192, #194). -
clear_cache
now handles positional arguments just likeset_cache
(#197). -
set_api_key
now 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_meta
fixed tofetch
the response automatically. -
pub_covid_hosp_state_timeseries
now correctly parses theissue
field, instead of returning a missing value (#202). - In
pub_fluview_meta
,latest_issue
field is now parsed as epiweek, rather than being parsed asDate
and returning a missing value. -
set_cache
cache 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_cache
and other caching functions. - Prefix all non-private endpoints with
pub_
. - Update printing of
avail_endpoints
to 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
fetch
function internal. - Change
fetch
andfetch_*
function interfaces now rely onfetch_args_list
. - Added
fetch_args_list
which returns a list of arguments to be passed tofetch
.
epidatr 0.8.0
- Fix source name duplication bug in
covidcast_epidata
. - Mark
covidcast_epidata
as experimental and do not export it. - Change
covidcast
argdata_source
tosource
. - Make
covidcast
argsissues
,lag
, andas_of
mutually exclusive. - Make
covid_hosp_facility_lookup
argsstate,
ccn
,city
,zip
, andfips_code
mutually 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_seconds
andreturn_empty
arguments 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.