Skip to contents

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.

Usage

read_config(file)

Arguments

file

string: path to file. Readable formats are .yml and .json.

Value

A list containing data from the specified file.