I am trying to paste together a path-string. Like this "C:\testfile.txt"
This doesn't work at all:
filename <- "testfile.txt"
path <- paste("C:\",filename,sep="")
This also doesn't produce the right result:
filename <- "testfile.txt"
path <- paste("C:\\",filename,sep="")
[1] "C:\\testfile.txt"
Can you help me to prudece a path-string with only one backslash?