Helper function: converts string to windows path

convertToWindowsPath(path, sep = "\\/")

Arguments

path

path string to be converted to windows path

sep

seperator which default: "/", which is used on unix and for R)

Examples

unixPath <- "/usr/model/vs2dh" winPath <- convertToWindowsPath(path=unixPath) winPath
#> [1] "\\usr\\model\\vs2dh"