Package ubic.basecode.util.r
Class JRIClient
java.lang.Object
ubic.basecode.util.r.AbstractRClient
ubic.basecode.util.r.JRIClient
- All Implemented Interfaces:
RClient
R connection implementation that uses the dynamic library interface JRI. For this to work the user must have
libjri.so or jri.dll and libr.so in their java.library.path.
- Author:
- paul
- See Also:
-
Field Summary
Fields inherited from class ubic.basecode.util.r.AbstractRClient
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
org.rosuda.REngine.REXP
Evaluate the given commandboolean
static boolean
ready()
retrieveMatrix
(String variableName) Get a matrix back out of the R context.void
Methods inherited from class ubic.basecode.util.r.AbstractRClient
assignFactor, assignFactor, assignMatrix, assignMatrix, assignMatrix, assignStringList, booleanDoubleArrayEval, dataFrame, dataFrameEval, doubleArrayDoubleArrayEval, doubleArrayEval, doubleArrayTwoDoubleArrayEval, doubleTwoDoubleArrayEval, intArrayEval, linearModel, linearModel, listEval, loadLibrary, loadScript, oneWayAnova, oneWayAnovaEval, remove, rowApplyLinearModel, stringEval, stringListEval, twoWayAnova, twoWayAnovaEval, variableIdentityNumber
-
Constructor Details
-
JRIClient
public JRIClient()
-
-
Method Details
-
ready
public static boolean ready() -
assign
- Parameters:
argName
-arg
-
-
assign
-
assign
-
assign
-
disconnect
public void disconnect()- Specified by:
disconnect
in classAbstractRClient
-
eval
Description copied from interface:RClient
Evaluate the given command- Parameters:
command
-- Returns:
-
getLastError
-
isConnected
public boolean isConnected() -
retrieveMatrix
Description copied from interface:RClient
Get a matrix back out of the R context. Row and Column names are filled in for the resulting object, if they are present.- Parameters:
variableName
-- Returns:
-
voidEval
-