Difference between revisions of "RConnector"
From Gcube Wiki
Lucio.lelii (Talk | contribs) (→Examples) |
Lucio.lelii (Talk | contribs) (→An Example) |
||
Line 15: | Line 15: | ||
=== An Example === | === An Example === | ||
− | <code lang=java> | + | <code lang="java"> |
+ | ... | ||
SecurityTokenProvider.instance.set("{your token}"); | SecurityTokenProvider.instance.set("{your token}"); | ||
− | |||
rConnector().build().connect(); | rConnector().build().connect(); | ||
+ | ... | ||
</code> | </code> |
Revision as of 18:38, 15 March 2016
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 an R console.
The login is automatically performed using the gcube authorization token.
An Example
...
SecurityTokenProvider.instance.set("{your token}");
rConnector().build().connect();
...