read_config_file: Read the content of a JSON config file

Description Usage Arguments Value Examples

View source: R/src_argos.R

Description

Given a vector of file paths, read_config_file attempts to read a JSON configuration file, using each element of the vector to locate the file. It returns the contents of the first file successfully read; subsequent path specifications are ignored. If no path succeeds, a fatal error is signalled.

Usage

1

Arguments

paths

A vector of path specifications to use in searching for the configuration file.

Value

A data frame containing the contents of the configuration file, as parsed by fromJSON.

Examples

1
2
3
4
## Not run: 
read_config_file( c('~/my_app.json', '~/my_proj.json'))

## End(Not run)

baileych/ohdsi-argos documentation built on Dec. 1, 2019, 12:41 p.m.