History: PluginR
Source of version: 47 (current)
Copy to clipboard
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 [http://mods.tiki.org|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:
{CODE()}
“ERROR: <convert...> command not found in”
{CODE}
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
!!# Main Plugin Files
!!!# wiki-plugin_r.php & wiki-plugin_rr.php
In mods svn, since August 4th, 2009.
[http://svn.code.sf.net/p/tikiwiki/code/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php?view=markup|lib/wiki-plugins/wikiplugin_r.php|box] code:
{IFRAME(name="PluginR version from svn",width="100%",height="400",align="middle",frameborder="0",marginheight="0",marginwidth="0",scrolling="auto",src="http://svn.code.sf.net/p/tikiwiki/code/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_r.php?view=markup")}{IFRAME}
!!!# wiki-plugin_rr.php
[http://svn.code.sf.net/p/tikiwiki/code/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php?view=markup|lib/wiki-plugins/wikiplugin_rr.php|box] code:
{iframe name="PluginRR version from svn" width="100%" height="400" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="http://svn.code.sf.net/p/tikiwiki/code/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php?view=markup"}
!!!# .htaccess
temp/.htaccess code:
{iframe name=".htaccess for PluginR from svn" width="100%" height="400" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="http://svn.code.sf.net/p/tikiwiki/code/mods/trunk/wiki-plugins/r/temp/.htaccess?view=markup"}
!!# Documentation
See the documentation at:
https://doc.tiki.org/PluginR
!!# 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.
!!# References
* http://www.r-project.org
* http://www.r-bloggers.com
* http://www.rstudio.com/
** http://www.use-r.org/downloads/Getting_Started_with_RStudio.pdf
* 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:
* http://blog.revolutionanalytics.com/
Special thanks to Rodrigo, Luci and Louis-Philippe for their help and advice to develop this plugin.