Helper function: converts string to windows path
convertToWindowsPath(path, sep = "\\/")
path | path string to be converted to windows path |
---|---|
sep | seperator which default: "/", which is used on unix and for R) |
unixPath <- "/usr/model/vs2dh" winPath <- convertToWindowsPath(path=unixPath) winPath#> [1] "\\usr\\model\\vs2dh"