Re: [R] Ignore escape characters in a string...

2014-04-09 Thread Jonathan Greenberg
Thanks all, I'll try some of these suggestions out but it seems like a raw string ability could come in helpful -- there aren't any packages out there that have this capability? --j On Tue, Apr 8, 2014 at 1:23 PM, Jeff Newmiller wrote: > What is wrong with > > winpath <- readLines("clipboard ")

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Jeff Newmiller
What is wrong with winpath <- readLines("clipboard ") ? If you want to show that as a literal in your code, then don't bother assigning it to a variable, but let it echo to output and copy THAT and put it in your source code. There is also file.choose()... ---

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Frede Aakmann Tøgersen
.com] On Behalf Of Barry Rowlingson Sent: 8. april 2014 17:40 To: Frede Aakmann Tøgersen Cc: Jonathan Greenberg; r-help Subject: Re: [R] Ignore escape characters in a string... On Tue, Apr 8, 2014 at 4:30 PM, Frede Aakmann Tøgersen mailto:fr...@vestas.com>> wrote: I'm a bit surprised

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Barry Rowlingson
On Tue, Apr 8, 2014 at 4:30 PM, Frede Aakmann Tøgersen wrote: > > 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. > > Well, the clipboard contained a pa

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Rui Barradas
Hello, There is support for the clipboard on Windows 7. Also, note that on Windows your solution leaves a connection open so maybe the following is better. # copy the next line C:\Program Files\R\R-3.0.3 clipb <- file("clipboard") winpath <- readLines(clipb) close(clipb) And, just to avoid

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Frede Aakmann Tøgersen
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 w

Re: [R] Ignore escape characters in a string...

2014-04-08 Thread Barry Rowlingson
On Tue, Apr 8, 2014 at 4:00 PM, Jonathan Greenberg 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(conn