Learn R Programming

modules (version 0.9.8)

split_path: Split a path into its components and merge them back together

Description

split_path(path) is a platform independent and file system logic aware alternative to strsplit(path, '/')[[1]].

merge_path(split_path(path)) is equivalent to path.

Usage

split_path(path)

merge_path(components)

Arguments

path

the path to split

components

character string vector of path components to merge

Value

split_path returns a character vector of path components that logically represent path.

merge_path returns a single character string that is logically equivalent to the path passed to split_path. logically represent path.