[Show/Hide Right Column]

A plugin for the R language of statistical computing and scientific data visualization
Print

PluginR

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 an pre-configured example using the profile: http://profiles.tikiwiki.org/r_test

Image

1. Requirements

The R package. On GNU/Linux and similar systems, you can install the base package with something like:

sudo apt-get install r-base r-base-dev r-recommended
or
yum install R R-devel R-lattice
depending on the GNU/Linux distribution that you use.

Once installed, you can start the R console in a terminal by typing "R".

The R package in the server needs the following extra packages for processing xml file types:

  • libxml2-dev (from debian GNU/Linux system, or similar name under other GNU/Linux distributions)

And these R packages need to be installed also in the server:

  • R4X
  • XML
  • ... (not finished yet)

You can install them with these commands from the R console:

install.packages("XML", repos = "http://www.omegahat.org/R")
install.packages("R4X", repos = "http://R-Forge.R-project.org")

Of course you can use some nice GUI programs on top of R, like the nice multiplatform RKWard: http://rkward.sf.net

2. Testing environment:

  • R 2.8.1 (from repos under Ubuntu Jaunty 9.04)

3. Plugin Files

3.1. wiki-plugin_r.php

In mods svn, since August 4th, 2009.

lib/wiki-plugins/wikiplugin_r.php code:

3.2. .htaccess

temp/.htaccess code:

4. How it works

The R script is written within the plugin tags The data file to be processed can be assigned with values provided within the R tags, or uploaded as attachment to a tracker item, and from there, passed to the R plugin with the param attId. The data inside the file is assigned to the R variable data, which can be referenced and used inside the R script in the wiki page.

5. Documentation

See the documentation at: http://doc.tikiwiki.org/PluginR

ToDo

[+]

6. References

Special thanks to Rodrigo, Luci and Louis-Philippe for their help and advice to develop this plugin.


Contributors to this page: xavi1688 points  , xavidp559 points  and sylvie2503 points  .
Page last modified on Sunday 13 June, 2010 15:30:14 UTC by xavi1688 points .

Search Wishes (subject only) [toggle]

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.


Show php error messages
 
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: comments.php
Line: 272
Type: Undefined variable: tiki_p_forum_vote
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1
PHP (5.2.10-2ubuntu6.4) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 6815
Type: Undefined offset: 1