indent_path: Separate and Indent Path Elements

Description Usage Arguments Examples

Description

Separate a path into hierarchical drectories and files for indented reading.

Usage

1
indent_path(path = NULL, copy2clip = is.global(2), symbol = "->")

Arguments

path

A path to the file/directory. If NULL indent_path attempts to use read_clip to read and fix Windows paths.

copy2clip

logical. If TRUE attempts to copy to the clipboard using write_clip. Default copies to the clipboard if used interactively.

symbol

The prefix symbol to use before the path element.

Examples

1
2
3
4
indent_path("C:/Users/Tyler/Desktop/guy")
indent_path("C:/Users/Tyler/Desktop/guy", symbol="--")
indent_path("C:/Users/Tyler/Desktop/guy", symbol=".")
indent_path("C:/Users/Tyler/Desktop/guy", symbol="")

trinker/pathr documentation built on May 31, 2019, 9:41 p.m.