Re: [R] How to use a reserved word in italics in an expression

2008-02-17 Thread Michael Kubovy
Delightfully straightforward! Thanks. On Feb 16, 2008, at 5:15 PM, Duncan Murdoch wrote: > On 16/02/2008 4:51 PM, Michael Kubovy wrote: >> Dear R-helpers, >> > label2 <- expression(paste(italic(attraction function:), 'slope')) >> Error: unexpected 'function' in "label2 <- >> expression(paste(i

Re: [R] How to use a reserved word in italics in an expression

2008-02-16 Thread Duncan Murdoch
On 16/02/2008 4:51 PM, Michael Kubovy wrote: > Dear R-helpers, > > > label2 <- expression(paste(italic(attraction function:), 'slope')) > Error: unexpected 'function' in "label2 <- > expression(paste(italic(attraction function" > > How do I tell R that in this case I don't want 'function' to b

[R] How to use a reserved word in italics in an expression

2008-02-16 Thread Michael Kubovy
Dear R-helpers, > label2 <- expression(paste(italic(attraction function:), 'slope')) Error: unexpected 'function' in "label2 <- expression(paste(italic(attraction function" How do I tell R that in this case I don't want 'function' to be treated as a reserved word but as a string in italics?