Learn R Programming

yulab.utils (version 0.2.2)

check_directory: Check if directory exists and is accessible

Description

Validates directory existence and accessibility with options to create if missing

Usage

check_directory(
  path,
  create_if_missing = FALSE,
  check_write_permission = TRUE,
  arg_name = "directory"
)

Value

Invisible TRUE if valid, throws error otherwise

Arguments

path

Directory path

create_if_missing

Whether to create directory if it doesn't exist

check_write_permission

Whether to verify write permissions

arg_name

Name of the argument for error messages