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

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to