Create directory

Description

This function creates a directory at the specified path if it does not already exist. Handles both directory paths and file paths (extracting the directory component). Includes validation for write permissions.

Usage

create_dir(export)

Arguments

export Character string path to the directory or file path from which to extract and create the directory

Value

NULL (invisibly). Creates directory as a side effect.

Examples

library("tima")

# Create a directory
create_dir(export = "path/to/directory")

# Extract directory from file path and create
create_dir(export = "path/to/file.txt")