Yes R on Windows have something like that you mentioned. I have only tried it in conjunction with read.table.

I'm a bit surprised about the \\ on a linux OS. I'm also surprised that in a file manager on Windows you can paste e.g. C:/users/frtog/Desktop and it can find its way to the folder. Weird.

Br. Frede


Sendt fra Samsung mobil


-------- Oprindelig meddelelse --------
Fra: Barry Rowlingson
Dato:08/04/2014 17.20 (GMT+01:00)
Til: Jonathan Greenberg
Cc: r-help
Emne: Re: [R] Ignore escape characters in a string...

On Tue, Apr 8, 2014 at 4:00 PM, Jonathan Greenberg <jgrn@illinois.edu>wrote:

> C:\Program Files\R\R-3.0.3


Does R on windows have clipboard support? I can do this on Linux:

 > readLines(file("clipboard"))
[1] "C:\\Program Files\\R\\R-3.0.3"

- that's from a copy of a path with only single slashes in. But
help(connections) on my linux system doesn't mention the Windows
clipboard....

Some ppl on SO have assorted solutions involving Windows scripting tools
that tweak the clipboard so you can Ctrl-V a modified value:

http://stackoverflow.com/questions/1407238/relief-from-backslash-irritation-in-r-for-windows

Barry

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]


