This utility function creates a directory (and any necessary parent directories) if it doesn't already exist. It's used throughout the hotrstuff package to ensure output directories are available before processing.
Note
Uses
dir.create()
withrecursive = TRUE
to create parent directoriesChecks if directory already exists before attempting creation
No error is thrown if directory already exists