Simpler R help tooltips

March 25, 2013
By

(This article was first published on R Enthusiasts, and kindly contributed to R-bloggers)

I posted yesterday about R Help tooltips. I have started to use them e.g. on the graph gallery

However, I’m quickly frustrated with having to write the full url, i.e if I want to add a link to the help page for the pacf function in stats, I need to find this link:

<a href="http://help.r-enthusiasts.com/library/stats/html/acf.html">pacf</a>

Note here that the pacf function is documented in the acf.html file.

I then modified the tooltip plugin so that links like these get the tooltip

<a data-rhelp="stats::pacf">pacf</a>

And the plugin finds the correct link, set it to the href attribute, and enable the tooltip

Some examples: pacf, barchart

To leave a comment for the author, please follow the link and comment on his blog: R Enthusiasts.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.