Skip to contents

Try to obtain yaml-formatted configuration placed either as given by the environment variable R_RAP_CONFIG_PATH or as provided by the package itself. If none can be found the function exits with an error

Usage

getConfig(fileName = "dbConfig.yml", packageName = "rapbase")

Arguments

fileName

String providing configuration file base name

packageName

String providing the package name

Value

A list of (yaml) configuration

Examples

getConfig()
#> $nordummy
#> $nordummy$host
#> [1] "dummy_db_hostname.no"
#> 
#> $nordummy$name
#> [1] "dummy_db_name"
#> 
#> $nordummy$user
#> [1] "dummy_db_username"
#> 
#> $nordummy$pass
#> [1] "dummy_db_password"
#> 
#> $nordummy$disp
#> [1] "dummy_display_name"
#> 
#> 
#> $rapbase
#> $rapbase$host
#> [1] "127.0.0.1"
#> 
#> $rapbase$name
#> [1] "rapbase"
#> 
#> $rapbase$user
#> [1] "root"
#> 
#> $rapbase$pass
#> [1] "root"
#> 
#> $rapbase$disp
#> [1] "ForTestingOnly"
#> 
#> 
#> $raplog
#> $raplog$host
#> [1] "db"
#> 
#> $raplog$name
#> [1] "raplog"
#> 
#> $raplog$user
#> [1] "root"
#> 
#> $raplog$pass
#> [1] "root"
#> 
#> $raplog$disp
#> [1] "ForLogDevOnly"
#> 
#> 
#> $autoreport
#> $autoreport$host
#> [1] "db"
#> 
#> $autoreport$name
#> [1] "autoreport"
#> 
#> $autoreport$user
#> [1] "root"
#> 
#> $autoreport$pass
#> [1] "root"
#> 
#> $autoreport$disp
#> [1] "ForAutoReportDevOnly"
#> 
#> 
#> $staging
#> $staging$host
#> [1] "db"
#> 
#> $staging$name
#> [1] "staging"
#> 
#> $staging$user
#> [1] "root"
#> 
#> $staging$pass
#> [1] "root"
#> 
#> $staging$disp
#> [1] "ForStagingDataDevOnly"
#> 
#> 
#> $dev
#> $dev$host
#> [1] "db"
#> 
#> $dev$name
#> [1] "rapbase"
#> 
#> $dev$user
#> [1] "root"
#> 
#> $dev$pass
#> [1] "root"
#> 
#> $dev$disp
#> [1] "ForDevOnly"
#> 
#>