Skip to content
Prev 26530 / 398502 Next

pasting "\" into character strings

Oh dear, oh dear, oh dear!

My answer is correct, and it does gives you

c:\work\part1.txt

However, print() (which you have called by auto-printing) escapes the
escape characters.  cat() does not, so you get
[1] "c:\\work\\part1.txt"
c:\work\part1.txt
On Sun, 22 Dec 2002, John Miyamoto wrote: