creat_folder: Create Nested Output Folders

View source: R/creat_folder.R

creat_folderR Documentation

Create Nested Output Folders

Description

Creates one to three nested folders (if not existing) under the current working directory and returns their names and absolute paths.

Usage

creat_folder(f1, f2 = NULL, f3 = NULL, return = NULL)

Arguments

f1

Character. First-level folder name.

f2

Character or 'NULL'. Second-level folder name. Default is 'NULL'.

f3

Character or 'NULL'. Third-level folder name. Default is 'NULL'.

return

Deprecated (not used). Kept for backward compatibility.

Value

List with elements:

folder_name

Relative path to the created folder

abspath

Absolute path ending with '/'

Examples

creat_folder(file.path(tempdir(), "1-result"))
creat_folder(file.path(tempdir(), "1-result"), "figures", "correlation")

IOBR documentation built on May 30, 2026, 5:07 p.m.