Difference between revisions of "RConnector"

From Gcube Wiki
Jump to: navigation, search
(How To use it)
(An Example)
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
RConnector can be contacted via the '''r-connector-client'''.
 
RConnector can be contacted via the '''r-connector-client'''.
  
'''r-connector-client''' returns a URL.  
+
Calling the connect method from the client a URL is returned.  
  
Using the returned URL in a browser a R console is opened.  
+
This URL ,used in a browser, opens automatically an R console.  
  
 
The login is automatically performed using the gcube authorization token.
 
The login is automatically performed using the gcube authorization token.
  
=== Examples ===
+
=== An Example ===
  
<code lang=java>
+
<source lang="java">
 +
...
 +
import static org.gcube.data.analysis.rconnector.client.Constants.rConnector;
 +
...
 
SecurityTokenProvider.instance.set("{your token}");
 
SecurityTokenProvider.instance.set("{your token}");
 
rConnector().build().connect();  
 
rConnector().build().connect();  
</code>
+
...
 +
</source>

Latest revision as of 12:21, 11 April 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 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(); 
...