SpaDES (version 1.3.1)

normPath: Normalize filepath

Description

Checks the specified filepath for formatting consistencies: 1) use slash instead of backslash; 2) do tilde etc. expansion; 3) remove trailing slash.

Usage

normPath(path)

# S4 method for character normPath(path)

# S4 method for list normPath(path)

# S4 method for `NULL` normPath(path)

# S4 method for missing normPath()

Arguments

path

A character vector of filepaths.

Value

Character vector of cleaned up filepaths.