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 TypeMethodDescriptionvoidvoidvoidvoidvoidorg.rosuda.REngine.REXPEvaluate the given commandbooleanstatic booleanready()retrieveMatrix(String variableName) Get a matrix back out of the R context.voidMethods 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:
disconnectin classAbstractRClient
-
eval
Description copied from interface:RClientEvaluate the given command- Parameters:
command-- Returns:
-
getLastError
-
isConnected
public boolean isConnected() -
retrieveMatrix
Description copied from interface:RClientGet 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
-