Greetings:

I've searched the R archives with no luck.

I want to print this to the screen as part of on-screen instructions as an
example:

default.FACTOR.labels <- c("Probe1", "Probe2", "Probe3")

I can't seem to trick gsub()

gsub("'", "\"", "default.FACTOR.labels <- c('Probe1', 'Probe2', 'Probe3'))")

[1] "default.FACTOR.labels <- c(\"Probe1\", \"Probe2\", \"Probe3\"))"
                                ^       ^   ^       ^   ^       ^          

which gives me \" rather than "

Is it possible to escape the " character?

Thanks.

Charles Annis, P.E.

[EMAIL PROTECTED]
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

______________________________________________
R-help@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.

Reply via email to