I need to output windows directory, however for paste0() I can only use "\", for example paste0("C:\\AB\\", "CD") where the output is "C:\\AB\\CD".
paste0()
paste0("C:\\AB\\", "CD")
"C:\\AB\\CD"
How to convert this to "C:\AB\CD"?
"C:\AB\CD"
The answer is using cat()
cat()
cat("C:\\AB\\CD") > C:\AB\CD