fullWinPath: Windows-Compatible Expanded File Path

View source: R/fullWinPath.R

fullWinPathR Documentation

Windows-Compatible Expanded File Path

Description

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"))
cat(fullWinPath("~/a/b", doubleBackslashes = TRUE))

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.