R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS
This plugin, which can be obtained from Mods, allows to execute R commands in a wiki page and show the results in that page also. Data for the program can be dynamically referenced from tracker item attachments.
See some pre-configured example at teh documentation page (link below)
Requirements
If you see an error message like:
“ERROR: <convert...> command not found in”
you need to ensure that you have imagemagick installed successfully in the server.
Testing environments:
- From R 2.8.1 to R 2.15.x
1.2. Main Plugin Files
1.2.1. wiki-plugin_r.php & wiki-plugin_rr.php
In mods svn, since August 4th, 2009.
lib/wiki-plugins/wikiplugin_r.php code:
1.2.2. wiki-plugin_rr.php
lib/wiki-plugins/wikiplugin_rr.php code:
1.2.3. .htaccess
temp/.htaccess code:
1.3. Documentation
See the documentation at:
https://doc.tiki.org/PluginR
1.4. ToDo
- Better way of creating svg files?
- R package to easily convert data frames into simple or fancy tables
- save results from R calculations back in tiki trackers
- display results from R in Tiki spreadsheets
- allow batch processing of R scripts.
1.5. References
- http://www.r-project.org
- http://www.r-bloggers.com
- http://www.rstudio.com/
- http://mars.wiwi.hu-berlin.de/mediawiki/sk/index.php/R_Extension_for_MediaWiki_v0.06
- http://mars.wiwi.hu-berlin.de/mediawiki/slides/index.php/Integration_of_R_into_wikis_-_Raw_Output
- http://addictedtor.free.fr/graphiques/
Other links:
Special thanks to Rodrigo, Luci and Louis-Philippe for their help and advice to develop this plugin.