Learn R Programming

rapbase (version 1.24.2)

getConfig: Get configuration for package, if any

Description

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")

Value

A list of (yaml) configuration

Arguments

fileName

String providing configuration file base name

packageName

String providing the package name

Examples

Run this code
getConfig()

Run the code above in your browser using DataLab