config_db: config_db

Description Usage Arguments Value Author(s) Examples

View source: R/modules.R

Description

config_db - Read default project config database name Read in a default config file and identify the named database to use. This is useful in different projects where you want the code to point to different databses. The config file is csv, 2 cols (key, value), and config_db uses key=database

Usage

1
config_db(file = "~/.gtx_config.csv")

Arguments

file

[Default = ~/.gtx_config.csv] Path to the config file to read in

Value

String of the database name

Author(s)

Karsten Sieber karsten.b.sieber@gsk.com

Examples

1
2
gtxconnection(use_database = config_db())
gtxconnection(use_database = config_db(file = "/some/path/config.csv"))

tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.