Read the current orderly configuration, stored within the outpack root, along with any orderly-specific extensions.
Arguments
- root
The path to the root directory, or
NULL
(the default) to search for one from the current working directory. This function does not require that the directory is configured for orderly, and can be anyoutpack
root (seeorderly_init()
for details).
Value
A list of configuration options:
core
: The most important options about the outpack store, containing:path_archive
: The path to the human-readable packet archive, orNULL
if disabled (set inorderly_config_set()
ascore.path_archive
)use_file_store
: Indicates if a content-addressable file store is enabled (core.use_file_store
)require_complete_tree
: Indicates if this outpack store requires all dependencies to be fully available (core.require_complete_tree
)hash_algorithm
: The hash algorithm used (currently not modifiable)
location
: Information about locations; seeorderly_location_add()
,orderly_location_rename()
andorderly_location_remove()
to interact with this configuration, ororderly_location_list()
to more simply list available locations. Returns as a data.frame with columnsname
,id
,priority
,type
andargs
, withargs
being a list column.orderly
: A list of orderly-specific configuration; this is just the minimum required version (asminimum_orderly_version
).
Examples
# A default configuration in a new temporary directory
path <- withr::local_tempdir()
orderly_init(path)
#> ✔ Created orderly root at '/tmp/Rtmp5CJVz5/file1ea874dd30cb'
orderly_config(path)
#> $core
#> $core$path_archive
#> [1] "archive"
#>
#> $core$use_file_store
#> [1] FALSE
#>
#> $core$require_complete_tree
#> [1] FALSE
#>
#> $core$hash_algorithm
#> [1] "sha256"
#>
#>
#> $location
#> name type args
#> 1 local local
#>
#> $orderly
#> $orderly$minimum_orderly_version
#> [1] ‘2.0.0’
#>
#> attr(,"filename")
#> [1] "/tmp/Rtmp5CJVz5/file1ea874dd30cb/orderly_config.json"
#>