safe_dir_create: Safely create a directory with proper checks
Description
Safely create a directory with proper checks
Usage
safe_dir_create(dir, recursive = TRUE, verbose = TRUE)
Value
TRUE if successful, error message if not
Arguments
- dir
Character string containing the directory path to create
- recursive
Logical indicating whether to create parent directories
- verbose
Logical indicating whether to show messages