[TxMt] Bundles: R; LaTeX deep include parsing

Allan Odgaard throw-away-1 at macromates.com
Wed May 3 08:40:57 UTC 2006


On 3/5/2006, at 3:26, Peter Cowan wrote:

> [...]
> Oh, btw for getting tooltip help you can use this command and send the
> output to a tooltip:
>
> printf "?$TM_SELECTED_TEXT" | R --slave

Printf will check the string for placeholders (like %s, %d), and  
escape sequences (like \n, \033).

So you probably want:

    echo "?$TM_SELECTED_TEXT" | R --slave

Or to use a here-string:

    R <<<"?$TM_SELECTED_TEXT" --slave

These two though provide the input with a newline. For echo it can be  
avoided using -n as argument switch.




More information about the textmate mailing list