public class RServe
extends java.lang.Object
Constructor and Description |
---|
RServe() |
Modifier and Type | Method and Description |
---|---|
static void |
callRScript(java.lang.String path)
A method to call a RScript.
|
static void |
callRScriptSilent(java.lang.String path)
A method to call a RScript without to capture (print) the output.
|
static void |
closeAndDisplay() |
static void |
evaluateExt(java.lang.String expression)
Evaluates an R expression without running in a job.
|
static org.rosuda.REngine.Rserve.RConnection |
getConnection()
Returns a Rserve connection.
|
static int |
getDisplayNumber() |
static java.lang.String |
getRout()
Internal method of Bio7.
|
static org.rosuda.REngine.Rserve.RSession |
getRsession()
A method to get the current stored RSession.
|
static java.lang.String[] |
getShellSelections()
A method to get the selected variable names in the left Objects tab in the R-Shell view (variables in the R workspace!).
|
static boolean |
isAlive()
Returns if the connection to Rserve is alive.
|
static boolean |
isAliveDialog()
Returns if the connection to Rserve is alive visible by means of a dialog.
|
static boolean |
isConnected()
Returns if the Bio7 application is connected to the Rserve application.
|
static boolean |
isIsconnecting()
Internal method of Bio7.
|
static boolean |
isPdf()
Returns if the plotting device is the pdf device.
|
static boolean |
isRrunning()
Returns if the Rserve application is running.
|
static java.io.File[] |
ListFilesDirectory(java.io.File filedirectory,
java.lang.String[] extensions) |
static void |
openPDF(java.lang.String plotPathR,
java.lang.String fileName,
boolean useBrowser,
java.lang.String openInJavaFXBrowser) |
static void |
plotLinux(java.lang.String finalpath) |
static void |
print(java.lang.String expression)
Evaluates and prints an expression to the Bio7 console.
|
static void |
printJob(java.lang.String expression)
Evaluates and prints an expression to the Bio7 console executed in a job.
|
static void |
printJobs(java.lang.String[] expressions)
Evaluates and prints an array of expressions to the Bio7 console executed in a job.
|
static void |
setConnection(org.rosuda.REngine.Rserve.RConnection connection)
Sets a Rserve connection.
|
static void |
setPdf(boolean pdf)
Set the plotting device to pdf.
|
static void |
setPlotInch(double inchx,
double inchy)
Set the plot size in inch for a pdf plot.
|
static void |
setPlotPixel(int imageWidth,
int imageHeight)
Set the plot size in pixel for a png plot.
|
static void |
setRout(java.lang.String rout)
Internal method of Bio7.
|
static void |
setRrunning(boolean running)
Set the Rserve running value.
|
static void |
setRsession(org.rosuda.REngine.Rserve.RSession rSess)
A method to store the current RSession.
|
public static void evaluateExt(java.lang.String expression)
expression
- a R expression.public static void printJob(java.lang.String expression)
expression
- a R expression as a string.public static void printJobs(java.lang.String[] expressions)
expressions
- a R expression as a string.public static void print(java.lang.String expression)
expression
- a R expression as a string.public static org.rosuda.REngine.Rserve.RConnection getConnection()
public static boolean isAliveDialog()
public static boolean isAlive()
public static void setConnection(org.rosuda.REngine.Rserve.RConnection connection)
connection
- a R connection.public static boolean isPdf()
public static void setPdf(boolean pdf)
pdf
- a boolean value.public static boolean isIsconnecting()
public static boolean isRrunning()
public static void setRrunning(boolean running)
running
- a boolean value.public static void setRout(java.lang.String rout)
rout
- a string value.public static java.lang.String getRout()
public static boolean isConnected()
public static void setPlotInch(double inchx, double inchy)
inchx
- the width of the plot in inch units.inchy
- the height of the plot in inch units.public static void setPlotPixel(int imageWidth, int imageHeight)
imageWidth
- the width of the plot in pixel units.imageHeight
- the height of the plot in pixel units.public static void callRScript(java.lang.String path)
path
- the relative path from the Bio7 Workspace to the script.public static void callRScriptSilent(java.lang.String path)
path
- the relative path from the Bio7 Workspace to the script.public static java.lang.String[] getShellSelections()
public static void closeAndDisplay()
public static void openPDF(java.lang.String plotPathR, java.lang.String fileName, boolean useBrowser, java.lang.String openInJavaFXBrowser)
public static int getDisplayNumber()
public static java.io.File[] ListFilesDirectory(java.io.File filedirectory, java.lang.String[] extensions)
public static void plotLinux(java.lang.String finalpath)
public static void setRsession(org.rosuda.REngine.Rserve.RSession rSess)
rSess
- the RSessionpublic static org.rosuda.REngine.Rserve.RSession getRsession()