Skip to contents

Expanded file path with backslashes (each duplicated if doubleBackslashes is TRUE). Duplicated backslashes can be useful when being used in RMarkdown documents

Usage

fullWinPath(x, doubleBackslashes = FALSE)

Arguments

x

file path (with slashes or backslashes as separators)

doubleBackslashes

if TRUE the backslashes in the Windows compatible path are duplicated each

Value

Windows compatible file path with backslashes (duplicated if

doubeBackslashes is TRUE)

Examples

cat(fullWinPath("~/a/b"))
#> \Users\runner\a\b
cat(fullWinPath("~/a/b", doubleBackslashes = TRUE))
#> \\Users\\runner\\a\\b