[R-SIG-Mac] ?> as a valid help request

Marc Schwartz marc_schwartz at me.com
Wed May 25 18:20:39 CEST 2011


On May 25, 2011, at 11:14 AM, Timothy Bates wrote:

> Hi all,
> I wonder if there could be a way to allow querys like the following to succeed by changes to the gui command line?
> 
> ?>
>> Error: unexpected '>' in "?>”
> 
> ?%*%
> Error: unexpected SPECIAL in "?%*%"
> 
> cheers,
> tim


Just surround the topic with quotes:

?">"

and 

?"%in%"


This is covered in ?help:

"Some topics need to be quoted (by backticks) or given as a character string. There include those which cannot syntactically appear on their own such as unary and binary operators, function and control-flow reserved words (including if, elsefor, in, repeat, while, break and next. The other reserved words can be used as if they were names, for example TRUE, NA and Inf."

HTH.

Marc Schwartz



More information about the R-SIG-Mac mailing list