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
ConstructorsModifierConstructorDescriptionprotected
Gets connection on default host (localhost) and port (6311)protected
RServeClient
(String host) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
connect()
void
org.rosuda.REngine.REXP
Evaluate the given commandvoid
finalize()
protected static String
boolean
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
-
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:
disconnect
in classAbstractRClient
-
eval
Description copied from interface:RClient
Evaluate the given command- Parameters:
command
-- Returns:
-
finalize
public void finalize() -
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
-