parse_path: Parse file path into useful components

Description Usage Arguments Details Examples

View source: R/radiant.R

Description

Parse file path into useful components

Usage

1
parse_path(path, chr = "", pdir = getwd(), mess = TRUE)

Arguments

path

Path to be parsed

chr

Character to wrap around path for display

pdir

Project directory if available

mess

Print messages if Dropbox or Google Drive not found

Details

Parse file path into useful components (i.e., file name, file extension, relative path, etc.)

Examples

1
list.files(".", full.names = TRUE)[1] %>% parse_path()

radiant-rstats/radiant.data documentation built on Nov. 13, 2018, 6:57 a.m.