- Support the determination of hub schema from v4 configuration files (#63). Also fixes bug in
create_hub_schema()
whereoutput_type_id
data type was being incorrectly auto-determined aslogical
when only point estimate output types where being collected by a hub. Nowcharacter
data type is returned for theoutput_type_id
for all schema versions in such situations when auto-determined.
- Fix bug in
create_hub_schema()
whereoutput_type_id
data type was being incorrectly determined asDate
instead ofcharacter
(Reported in reichlab/variant-nowcast-hub#87 (comment)).
- Remove dependency on development version of
arrow
package and bump required version to 17.0.0.
- Removed dependency on development version of
zoltr
package. - Fixed minor error in
connect_hub()
article.
- Adds a
skip_checks
parameter to theconnect_hub
andconnect_model_output
functions. Whenskip_checks
is set toTRUE
, these functions will bypass the default behavior of scanning the hub's model output directory for invalid files. Omitting these checks results in better performance when connecting to cloud-based hubs but can result in errors when querying the data. This option is only valid when connecting to hubs that meet the following criteria:- the model output directory contains only model output data (no
README.md
, for example) - the model output files use a single file format.
- the model output directory contains only model output data (no
- Fix {tidyselect} warnings by converting internal syntax
- Bump required dplyr version to 1.1.0
- Add
"from_config"
option to theoutput_type_id_datatype
argument increate_hub_schema()
,coerce_to_hub_schema()
andconnect_hub()
. This allows users to set the hub leveloutput_type_id
column data type through thetasks.json
output_type_id_datatype
property introduced in schema version v3.0.1. (#44)
- Breaking change:
expand_model_out_val_grid()
andcreate_model_out_submit_tmpl()
are now defunct. These functions have been moved tohubValidations
and replaced byhubValidations::expand_model_out_grid()
andhubValidations::submission_tmpl()
, respectively. The old functions will now fail if called and will be removed in a future release.
- Adds back-compatible support in
create_hub_schema()
for determining a hub's schema from v3.0.0 sample output type configurations intasks.json
files (#27). - Adds back-compatible support for v3.0.0 sample output type configuration in
tasks.json
files. The primary change is howoutput_type_id
values for sample output types are handled inexpand_model_out_val_grid()
. By default, all valid task ID value combinations are expanded, as per any other output type, butNA
s are returned in theoutput_type_id
column. However, if new argumentinclude_sample_ids
is set toTRUE
, example sample IDs are included in theoutput_type_id
column, demonstrating how compound tasks IDs group rows of task ID combinations into samples. These are unique across modeling tasks. Increate_model_out_submit_tmpl()
, example sample IDs are included in theoutput_type_id
column by default (#30).
- Add
collect_zoltar()
, which retrieves data from a zoltardata.com project and transforms it from Zoltar's native download format into a hubverse one. Zoltar (documentation here) is a pre-hubverse research project that implements a repository of model forecast results, including tools to administer, query, and visualize uploaded data, along with R and Python APIs to access data programmatically (zoltr and zoltpy, respectively.)
- Add
collect_hub()
which wrapsdplyr::collect()
and, where possible, converts the output to amodel_out_tbl
class object by default. The function also accepts additional arguments that can be passed toas_model_out_tbl()
. - Allow for parsing
tasks.json
config files where bothrequired
andoptional
properties of task IDs are set tonull
. This change facilitates the encoding of task IDs in modeling tasks where no value is expected for a given task ID. In model output files, the value in such modeling task task IDs will beNA
.
- Initial package release resulting from split of
hubUtils
package. SeehubUtils
NEWS.md for details including previous release notes.