This is primarily an internal function for importing configuration
information from a file. It is called by brew()
, and detects .yml
or
.json
files by their file extentions; all the actual work is done by
yaml::read_yaml
and jsonlite::read_json
respectively. It is available as
an exported function so that users can check their data is being imported
correctly, and for developers who may wish to intercept configuration files
for checking purposes.