An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061202/f33793e5/attachment-0004.pl
Urgent Help in Paste Command
2 messages · Shubha Karanth, Gabor Grothendieck
Try this:
x <- readline()
C:\Program Files\R\R-2.4.0\bin\Rgui.exe
x
[1] "C:\\Program Files\\R\\R-2.4.0\\bin\\Rgui.exe"
You can also use
readLines("clipboard")
if you are trying to read in something from the clipboard.
On 12/2/06, Shubha Karanth <shubhakaranth at gmail.com> wrote:
Hi Experts,
I want to see my object as below:
'C:\Program Files\R\R-2.4.0\bin\Rgui.exe'
So I use the paste command. None of the below is working. Could anyone help
me on this?
paste("'C:\Program Files\R\R-2.4.0\bin\Rgui.exe'")
[1] "'C:Program FilesRR-2.4.0\binRgui.exe'"
paste("'C:","\","Program Files","\","R","\","R-2.4.0","\","bin","\","
Rgui.exe'",sep="")
Error: syntax error in "paste("'C:","\","Program"
paste("'C:","Program Files","R","R-2.4.0","bin","Rgui.exe'",sep="\")
+
I need to only use the \ symbol and not / or \\. Please help me?
Thank you,
Shubha.
[[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch 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.