[R] Fwd: string

2010-01-06 Thread robert-mcfadden
I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt How can I do it - is it possible? Best, Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Fwd: string

2010-01-06 Thread milton ruser
Hi Robert, I use something like this with grass-R: myvar-paste(questionspan style=,color: #FF; font-weight: bold; font-size: 14pt,,sep=\) myvar May be it works for you. bests milton On Wed, Jan 6, 2010 at 6:22 AM, robert-mcfad...@o2.pl wrote: I would like to assign a variable y the

Re: [R] Fwd: string

2010-01-06 Thread Peter Dalgaard
robert-mcfad...@o2.pl wrote: I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt How can I do it - is it possible? Sure, but you need to escape the double quotes. The easiest way is actually to read it in, like (sorry about

Re: [R] Fwd: string

2010-01-06 Thread robert-mcfadden
Thank you very much all of you. (I forgot about directly ' ', instead I used and got errors.) Best, Robert Dnia 6 stycznia 2010 12:22 robert-mcfad...@o2.pl napisaƂ(a): I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt

Re: [R] Fwd: string

2010-01-06 Thread Gabor Grothendieck
Some new syntax to handle this without escapes was on my wish list for R and keeps coming up from time to time. As mentioned it would also be useful for latex source, Windows path names, regular expressions and other situations such as this one which require characters that otherwise need to be