I've updated this command to make it a bit more robust, and to deal with a couple of important cases. The first is aliasing, since R help pages are grouped into sets of closely related functions. So now if you run the script on ".C" you should get "Foreign", etc., like in the R app. The second is non-local links: the script will now play nice with http/ftp links in R help pages. I've assigned a key equivalent of ⌘⌥? -- I don't think this clashes with anything in the source.r scope...
It's probably worth putting this in the R bundle at this stage (someone with repos access...?). Please let me know if you have any issues!
Cheers, Jon
On 14/07/06, Alan Schussman alan@schussman.com wrote:
On Jul 14, 2006, at 1:24 PM, Jonathan Clayden wrote:
On 14/07/06, Ana Nelson nelson.ana@gmail.com wrote:
Once you open an R help page in this way, the hyperlinks don't work. Anyone know if it's possible to fix that?
Back to Ruby! This is a little quick and dirty, but it seems to work fine:
Very cool, Jonathan and Ana. I had been sending help commands to R itself, but that usually meant my R window came to the front along with the help window. This allows one to keep R out of the way until it's wanted. (And the links work, which is great.)
-Alan
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Jul 22, 2006, at 11:22 AM, Jonathan Clayden wrote:
I've updated this command to make it a bit more robust, and to deal with a couple of important cases. The first is aliasing, since R help pages are grouped into sets of closely related functions. So now if you run the script on ".C" you should get "Foreign", etc., like in the R app. The second is non-local links: the script will now play nice with http/ftp links in R help pages. I've assigned a key equivalent of ⌘⌥? -- I don't think this clashes with anything in the source.r scope...
Neat update, Jon. I especially like that it now finds associated functions -- so, for example, asking for help on read.csv loads up read.table correctly. That's great.
I went ahead and added it to the R bundle.
Cheers- -Alan