Retrieve orderly config object.
Arguments
- root
The path to an orderly root directory, or
NULL(the default) to search for one from the current working directory iflocateisTRUE.- locate
Logical, indicating if the configuration should be searched for. If
TRUEandconfigis not given, then orderly looks in the working directory and up through its parents until it finds anorderly_config.ymlfile.
Public fields
rootRoot dir of the orderly repository
rawThe raw orderly config yaml
destinationDB connection configuration for where to store orderly output database. Defaults to local SQLite db
orderly.sqlitefieldsConfiguration of fields in reports, specifying which are required
remoteConfiguration of remote sources i.e. shared copy of orderly on a remote machine
vaultVault server connection information
global_resourcesPath to dir containing global resources.
changelogChangelog type configuration
tagsList of available tags for orderly reports.
databaseDatabase configuration specifying driver and connection args for (possibly multiple) databases
archive_versionOrderly version number of the archive
run_optionsList of run options
Methods
Method new()
Create an object representing orderly config
Usage
orderly_config_$new(root, validate = TRUE)Method server_options()
Get connection options for the current server. This is
the details from the "remote" section for the server
being run on. Server identified via env var
ORDERLY_API_SERVER_IDENTITY
Examples
# The orderly demo, with lots of potential reports:
path <- orderly1::orderly_example("demo")
orderly1::orderly_config(path)
#> <orderly_config>
#> Public:
#> add_run_option: function (name, value)
#> archive_version: 1.1.25
#> changelog: data.frame
#> database: list
#> destination: list
#> fields: data.frame
#> get_run_option: function (name)
#> global_resources: global
#> initialize: function (root, validate = TRUE)
#> raw: list
#> remote: NULL
#> root: /tmp/RtmpK9O2l4/file1d5071e897e5
#> run_options: list
#> server_options: function ()
#> tags: dataset plot
#> vault: NULL
#> Private:
#> migrate: function ()
#> validate: function ()