Convert slashes in a string from / to \\ if the operating system is windows. Do the reverse if the OS is unix.
convSlashes(expr, os=.Platform$OS.type, addQuotes=FALSE)
String value (usually a system pathway).
operating system (either "windows"
or "unix"
).
logical: if TRUE
, enclose the string expression
in escaped double quotation marks.
Returns the input string modified to have the appropriate slashes for the specified operating system.