read_config {hubUtils} | R Documentation |
Read a hub config file into R
Description
Read a hub config file into R
Usage
read_config(hub_path, config = c("tasks", "admin", "model-metadata-schema"))
Arguments
hub_path |
Either a character string path to a local Modeling Hub directory
or an object of class |
config |
Name of config file to validate. One of |
Value
The contents of the config as an R list.
Examples
# Read config files from local hub
hub_path <- system.file("testhubs/simple", package = "hubUtils")
read_config(hub_path, "tasks")
read_config(hub_path, "admin")
# Read config file from AWS S3 bucket hub
hub_path <- arrow::s3_bucket("hubverse/hubutils/testhubs/simple/")
read_config(hub_path, "admin")
[Package hubUtils version 0.1.7 Index]