format_path: Format text as a file path

View source: R/pastepath.R

format_pathR Documentation

Format text as a file path

Description

Format text as a file path

Usage

format_path(text = character(0))

Arguments

text

String. If not supplied this function reads the clipboard

Value

A well-formatted file path. When the file path is downstream of the current working directory, a string representing a call to 'file.path' with a relative path is returned. Otherwise, the absolute file path is returned


jonathanaron/pastepath documentation built on March 28, 2022, 4:35 a.m.