Package ubic.basecode.util.r
Class RServeClient
java.lang.Object
ubic.basecode.util.r.AbstractRClient
ubic.basecode.util.r.RServeClient
- All Implemented Interfaces:
RClient
- Author:
- pavlidis
-
Field Summary
Fields inherited from class ubic.basecode.util.r.AbstractRClient
log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGets connection on default host (localhost) and port (6311)protectedRServeClient(String host) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidbooleanconnect()voidorg.rosuda.REngine.REXPEvaluate the given commandvoidfinalize()protected static StringbooleanretrieveMatrix(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
-
RServeClient
Gets connection on default host (localhost) and port (6311)- Throws:
IOException
-
RServeClient
- Parameters:
host-- Throws:
IOException
-
-
Method Details
-
findRserveCommand
-
assign
- Parameters:
argName-arg-
-
assign
-
assign
-
assign
-
connect
public boolean connect() -
disconnect
public void disconnect()- Specified by:
disconnectin classAbstractRClient
-
eval
Description copied from interface:RClientEvaluate the given command- Parameters:
command-- Returns:
-
finalize
public void finalize() -
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
-