get_config_derived_task_ids() is an alias of
get_derived_task_ids_config().
Usage
get_derived_task_ids_config(
config_tasks,
round_id = NULL,
call = rlang::current_env()
)
get_config_derived_task_ids(
config_tasks,
round_id = NULL,
call = rlang::current_env()
)Arguments
- config_tasks
a list version of the content's of a hub's
tasks.jsonconfig file, accessed through the"config_tasks"attribute of a<hub_connection>object or functionread_config().- round_id
Character string. Round identifier. If the round is set to
round_id_from_variable: true, IDs are values of the task ID defined in the round'sround_idproperty ofconfig_tasks. Otherwise should match round'sround_idvalue in config.- call
The execution environment of the function to name in error and warning messages. By default, messages name this function. Supply another environment, such as a wrapper function's environment, to name that function instead.
Value
a character vector of hub or round level derived task ID names.
If round_id is NULL or the round does not have a round level
derived_task_ids setting, returns the hub level derived_task_ids
setting.
See also
get_hub_derived_task_ids() to get derived task IDs from a hub
path.
Examples
hub_path <- system.file("testhubs/v4/flusight", package = "hubUtils")
config_tasks <- read_config(hub_path, "tasks")
get_derived_task_ids_config(config_tasks)
#> [1] "target_date"
get_derived_task_ids_config(config_tasks, round_id = "2023-05-08")
#> [1] "target_date"
