RProjectConnector 2.1

Hello everyone,

I am glad to announce the release of version 2.1 of the RProjectConnector.

The binding between Pharo and R (https://www.r-project.org/) is now translated to UFFI and so to Pharo 6.0.

You can call directly your R methods from Pharo. For example, with the famous iris clustering example:

      iris := 'eval' asREval: {RObject findVar: 'iris'}.
      'plot'
         asREval:
                 {(iris at: 'Petal.Length').
                  (iris at: 'Petal.Width').
                  (#pch -> 21).
                  (#xlab -> 'length').
                  (#ylab -> 'Width').
                  (#bg  ->((iris at: 'Species') collect: [ :value | {'red'. 'green3'. 'blue'} at: value ])).
              (#main -> 'Edgar Anderson''s Iris Data')}.
      iris inspect.

To use it, you should install R and copy the R libraries near the Pharo VM (see the documentation on SmalltalkHub (http://smalltalkhub.com/#!/~VincentBlondeau/RProjectConnector) for how to proceed).

Don’t forget to relaunch Pharo after the installation to be able to use the connector.

Only basic features are implemented yet, but you can participate to its extension!

Cheers,

Vincent Blondeau

Leave a comment