format_path: Format a path

View source: R/utils.R

format_pathR Documentation

Format a path

Description

Normalize and validate a path (optionally, within a certain directory).

Usage

format_path(path, dir = NULL, mode = NA)

Arguments

path

The path to normalize.

dir

(Optional) the directory to append to the beginning of the path. NULL (default) to not append any directory, leaving path unchanged.

mode

The mode for file.access to verify existence, writing permission, or reading permission. Use NA (default) to not perform any is.

Value

The normalized path, or NULL if the path was NULL.


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.