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 iflocate
isTRUE
. This function does not require that the directory is configured for orderly, and can be anyoutpack
root (see orderly_init for details).- locate
Logical, indicating if the root should be searched for. If
TRUE
, then we looks in the directory given forroot
(or the working directory ifNULL
) and then up through its parents until it finds an.outpack
directory ororderly_config.yml
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 in orderly_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; see orderly_location_add, orderly_location_rename and orderly_location_remove to interact with this configuration, or orderly_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()
orderly2::orderly_init(path)
#> ✔ Created orderly root at '/tmp/RtmprnCT52/file17161c03cf58'
orderly2::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] ‘1.99.0’
#>
#>