0

Similar to How to write string literals in python without having to escape them?, I wish to have a character string storing a path to a directory copied from the windows explorer. E.g.

dir <- 'C:\Users'

I don't want to have to escape the backwards slash.

Community
  • 1
  • 1
Alex
  • 15,186
  • 15
  • 73
  • 127
  • 3
    Relevant - http://stackoverflow.com/questions/17605563/efficiently-convert-backslash-to-forward-slash-in-r#comment25625528_17605617 – thelatemail Jun 22 '16 at 01:20
  • excellent, thanks, so it looks like `readline` or `readClipboard` is the way to go. – Alex Jun 22 '16 at 01:24

0 Answers0