Description Usage Arguments Value Examples
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.
1 | read_config_file(paths = NA)
|
paths |
A vector of path specifications to use in searching for the configuration file. |
A data frame containing the contents of the configuration file,
as parsed by fromJSON
.
1 2 3 4 | ## Not run:
read_config_file( c('~/my_app.json', '~/my_proj.json'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.