RConnector

From Gcube Wiki
Revision as of 11:21, 11 April 2016 by Lucio.lelii (Talk | contribs) (An Example)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RConnector is a gCube Rest Service. Rconnector is a mediator service between the gCube infrastructures and RStudio Server. It offers via browser a console with the R environment.

How To use it

RConnector can be contacted via the r-connector-client.

Calling the connect method from the client a URL is returned.

This URL ,used in a browser, opens automatically an R console.

The login is automatically performed using the gcube authorization token.

An Example

...
import static org.gcube.data.analysis.rconnector.client.Constants.rConnector;
...
SecurityTokenProvider.instance.set("{your token}");
rConnector().build().connect(); 
...