Package: hubUtils 1.2.0

Anna Krystalli

hubUtils: Core 'hubverse' Utilities

Core set of low-level utilities common across the 'hubverse'. Used to interact with 'hubverse' schema, Hub configuration files and model outputs and designed to be primarily used internally by other 'hubverse' packages. See Reich et al. (2022) <doi:10.2105/AJPH.2022.306831> for an overview of Collaborative Hubs.

Authors:Anna Krystalli [aut, cre], Li Shandross [aut], Nicholas G. Reich [ctb], Evan L. Ray [ctb], Zhian N. Kamvar [ctb], Consortium of Infectious Disease Modeling Hubs [cph]

hubUtils_1.2.0.tar.gz
hubUtils_1.2.0.zip(r-4.7)hubUtils_1.2.0.zip(r-4.6)hubUtils_1.2.0.zip(r-4.5)
hubUtils_1.2.0.tgz(r-4.6-any)hubUtils_1.2.0.tgz(r-4.5-any)
hubUtils_1.2.0.tar.gz(r-4.7-any)hubUtils_1.2.0.tar.gz(r-4.6-any)
hubUtils_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
hubUtils/json (API)
NEWS

# Install 'hubUtils' in R:
install.packages('hubUtils', repos = c('https://hubverse-org.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hubverse-org/hubutils/issues

Pkgdown/docs site:https://hubverse-org.github.io

Datasets:

On CRAN:

Conda:

hubverse

7.70 score 6 stars 8 packages 78 scripts 645 downloads 51 exports 31 dependencies

Last updated from:035ee3a78c (on v1.2.0). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK138
source / vignettesOK156
linux-release-x86_64OK139
macos-release-arm64OK121
macos-oldrel-arm64OK78
windows-develOK108
windows-releaseOK103
windows-oldrelOK90
wasm-releaseOK133

Exports:%>%as_configas_model_out_tblcheck_deprecated_schemaconvert_output_typecreate_s3_urlextract_schema_versionget_config_tidget_date_colget_has_output_type_idsget_hub_derived_task_idsget_hub_file_formatsget_hub_model_output_dirget_hub_timezoneget_non_task_id_schemaget_observable_unitget_round_idsget_round_idxget_round_model_tasksget_round_task_id_namesget_schemaget_schema_urlget_schema_valid_versionsget_schema_version_latestget_task_id_namesget_version_configget_version_fileget_version_hubget_versionedhas_target_data_configis_github_repo_urlis_github_urlis_s3_base_fsis_urlis_v3_configis_v3_config_fileis_v3_hubis_valid_urlmodel_id_mergemodel_id_splitread_configread_config_filesubset_std_colssubset_task_id_colssubset_task_id_namesvalidate_model_out_tblversion_equalversion_gtversion_gteversion_ltversion_lte

Dependencies:askpassbackportscachemcheckmateclicurlfastmapfsghgitcredsgluehttr2inijsonlitelifecyclemagrittrmemoiseopensslpillarpkgconfigpurrrR6rappdirsrlangstringistringrsystibbleutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Coerce a config list to a config class objectas_config
Convert model output to a 'model_out_tbl' class object.as_model_out_tbl
Check whether a config file is using a deprecated schemacheck_deprecated_schema
Transform between output typesconvert_output_type
Create a URL to a file in an S3 bucketcreate_s3_url
Extract the schema version from a schema 'id' or config 'schema_version' property character stringextract_schema_version
Get the name of the output type id column based on the schema versionget_config_tid
Get hub configuration fieldsget_hub_derived_task_ids get_hub_file_formats get_hub_model_output_dir get_hub_timezone
Utilities for accessing round ID metadataget_round_ids get_round_idx
Get the model tasks for a given roundget_round_model_tasks
Get task ID names for a given roundget_round_task_id_names
Download a schemaget_schema
Get the JSON schema download URL for a given config file versionget_schema_url
Get a vector of valid schema versionget_schema_valid_versions
Get the latest schema versionget_schema_version_latest
Get hub task IDsget_task_id_names
Get hub config schema versionsget_version_config get_version_file get_version_hub
Example Hub model output datahub_con_output
Detect if a URL is a GitHub repository URLis_github_repo_url
Detect a URL on github.comis_github_url
Detect whether An object of class <SubTreeFileSystem> represents the base path of an S3 file system (i.e. the root of a cloud hub)is_s3_base_fs
Determine if a string is a URLis_url
Is config list representation using v3.0.0 schema?is_v3_config
Is config file using v3.0.0 schema?is_v3_config_file
Is hub configured using v3.0.0 schema?is_v3_hub
Determine if a URL is valid and reachableis_valid_url
Merge/Split model output tbl 'model_id' columnmodel_id_merge model_id_split
Read a hub config file into Rread_config
Read a JSON config file from a pathread_config_file
Hubverse model output standard column namesstd_colnames
Subset a 'model_out_tbl' or submission 'tbl'.subset_std_cols subset_task_id_cols
Subset a vector of column names to only include task IDssubset_task_id_names
Get target data configuration propertiesget_date_col get_has_output_type_ids get_non_task_id_schema get_observable_unit get_versioned has_target_data_config has_target_data_config.default has_target_data_config.SubTreeFileSystem target-data-utils
Validate a 'model_out_tbl' object.validate_model_out_tbl
Compare hub config 'schema_version's to specific version numbers from a variety of sourcesversion_equal version_gt version_gte version_lt version_lte