Skip to contents

A simple function to validate a configuration object that uses the config package.

Usage

validate_cfg(cfg)

Arguments

cfg

Configuration object (list) to validate

Value

TRUE if the configuration is valid, otherwise an error is thrown.

Details

This function verifies that the configuration object is a list and that it contains at least a 'default' configuration.