normalize_path_te: Normalize a filepath

Description Usage Arguments Details Value

Description

Custom version of normalizePath().

Usage

1
normalize_path_te(filepath = NULL, winslash = "/", mustWork = NA)

Arguments

filepath

character. Filepath.

winslash

character. / instead of \.

mustWork

logical.

Details

Modified from https://github.com/rstudio/rmarkdown/blob/81c209271e06266115e08263dbcde5d007e4d77c/R/includes.R NOTE: Not sure why, but need to set mustWork = FALSE) explicitly, otherwise warnings appear. (This behavior is not observed when calling normalizePath directly. Howver, normalizePath() specifies winslash = \ by default, which is annoying.

Value

character. Filepath.


aelhabr/temisc documentation built on May 28, 2019, 3:55 p.m.