Ensures subdirectories exist within a base path, creating them if necessary.

create_file_paths(base_path, sub_paths)

Arguments

base_path

String. Root path to build from.

sub_paths

Character vector of subdirectory names.

Value

Named list of full paths corresponding to each sub_path.

Examples

paths <- create_file_paths("data/output", c("plots", "tables"))