| orderly_config {orderly} | R Documentation |
Retrieve orderly config object.
Description
Retrieve orderly config object.
Usage
orderly_config(root = NULL, locate = TRUE)
Arguments
root |
The path to an orderly root directory, or |
locate |
Logical, indicating if the configuration should be
searched for. If |
Value
An R6 object representing the orderly config.
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
Public methods
Method new()
Create an object representing orderly config
Usage
orderly_config_$new(root, validate = TRUE)
Arguments
rootRoot dir of the orderly repository
validateIf TRUE migrate cfg to handle any format changes and validate structure if well formed for each of the cfg fields
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
Usage
orderly_config_$server_options()
Returns
Options for current server if can be identified, otherwise NULL
Method add_run_option()
Add a key-value pair run option
Usage
orderly_config_$add_run_option(name, value)
Arguments
nameName of run option
valueValue for run option
Method get_run_option()
Retrieve value of a run option
Usage
orderly_config_$get_run_option(name)
Arguments
nameName of run option
Examples
# The orderly demo, with lots of potential reports:
path <- orderly::orderly_example("demo")
orderly::orderly_config(path)