normalize_path: Normalize paths

Description Usage Arguments Examples

View source: R/paths.R

Description

a wrapper function of normalizePath() with different default parameters.

Usage

1
normalize_path(path, winslash = .Platform$file.sep, must_work = FALSE)

Arguments

path

character or character vector of file paths.

winslash

the separator to be used on Windows. Default is .Platform$file.sep. Must be one of c('/', '\\').

must_work

logical, default FALSE.

Examples

1
2
library(antgreens)
normalize_path(c('', NA, "file/path"))

YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.