-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Purpose
In issue #230, the folder organization was reorganized to follow this diagram.
As /config.R is intended to be a central focal point for managing and using the notebooks and configuration files.
Therefore a feature that would greatly assist users would be functions within /config.R that create the recommended folder directory.
Process
Create a single function within /config.R that builds the recommended folder organization.
Since not all notebooks require every section of the recommended folder directory, the function will need to read through the config passed as a parameter, so that it only creates the required folders for the sections that are used.
Function Signature:
Description: The function takes conf
, a parsed configuration file obtained from the parse_config
function.
verbose
is a boolean (set TRUE by default) that prints operational messages when TRUE.
When the function is called, it takes the parsed configuration file and creates all the required filepaths used within the config file.
The function calls a helper function create_file_path
that checks if the directory already exists, or creates it if the directory does not exist.
create_file_directory(conf, verbose= TRUE)
Task List
- Have the function get the needed sections of the config files
- Create the folder directory for each of the sections (if needed)