- add(String) - Method in class org.rosuda.JRI.RFactor
-
add a new element (by name)
- addMainLoopCallbacks(RMainLoopCallbacks) - Method in class org.rosuda.JRI.Rengine
-
Add a handler for R callbacks.
- ANYSXP - Static variable in class org.rosuda.JRI.REXP
-
- asBool() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as
RBool (if it is one)
- asDouble() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as double (if it is one)
- asDoubleArray() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as an array of doubles.
- asDoubleMatrix() - Method in class org.rosuda.JRI.REXP
-
returns the content of the REXP as a matrix of doubles (2D-array:
m[rows][cols]).
- asFactor() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as
RFactor (if it is one)
- asInt() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as int (if it is one)
- asIntArray() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as an array of integers.
- asList() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as
RList if the contents is a list or a generic vector
- asMatrix() - Method in class org.rosuda.JRI.REXP
-
- assign(String, String) - Method in class org.rosuda.JRI.Rengine
-
assign a string value to a symbol in R.
- assign(String, REXP) - Method in class org.rosuda.JRI.Rengine
-
assign a content of a REXP to a symbol in R.
- assign(String, double[]) - Method in class org.rosuda.JRI.Rengine
-
assign values of an array of doubles to a symbol in R (creating an integer vector).
- assign(String, int[]) - Method in class org.rosuda.JRI.Rengine
-
assign values of an array of integers to a symbol in R (creating a numeric vector).
- assign(String, boolean[]) - Method in class org.rosuda.JRI.Rengine
-
assign values of an array of booleans to a symbol in R (creating a logical vector).
- assign(String, String[]) - Method in class org.rosuda.JRI.Rengine
-
assign values of an array of strings to a symbol in R (creating a character vector).
- asString() - Method in class org.rosuda.JRI.REXP
-
return the first element of a character vector if this REXP is a character vector of length 1 or more, return null otherwise
- asStringArray() - Method in class org.rosuda.JRI.REXP
-
return the contents of this REXP as an array of strings if this REXP is a character vector, return null otherwise
- asSymbolName() - Method in class org.rosuda.JRI.REXP
-
return the name of the symbol represented by this REXP if is it a symbol or null otherwise
- asVector() - Method in class org.rosuda.JRI.REXP
-
get content of the REXP as
Vector (if it is one)
- at(int) - Method in class org.rosuda.JRI.RFactor
-
returns name for a specific ID
- at(String) - Method in class org.rosuda.JRI.RList
-
get xpression given a key
- at(int) - Method in class org.rosuda.JRI.RList
-
get element at the specified position
- at(String) - Method in class org.rosuda.JRI.RVector
-
return contents by name or null if not found
- at(int) - Method in class org.rosuda.JRI.RVector
-
- RAWSXP - Static variable in class org.rosuda.JRI.REXP
-
- RBool - Class in org.rosuda.JRI
-
Implementation of tri-state logical data type in R.
- RBool(boolean) - Constructor for class org.rosuda.JRI.RBool
-
- RBool(RBool) - Constructor for class org.rosuda.JRI.RBool
-
- RBool(int) - Constructor for class org.rosuda.JRI.RBool
-
- rBusy(Rengine, int) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R enters or exits a longer evaluation.
- rChooseFile(Rengine, int) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R expects the user to choose a file
- RConsoleOutputStream - Class in org.rosuda.JRI
-
RConsoleOutputStream provides an OutputStream which causes its output to be written to the R console.
- RConsoleOutputStream(Rengine, int) - Constructor for class org.rosuda.JRI.RConsoleOutputStream
-
opens a new output stream to R console
- REALSXP - Static variable in class org.rosuda.JRI.REXP
-
- Rengine - Class in org.rosuda.JRI
-
Rengine class is the interface between an instance of R and the Java VM.
- Rengine(String[], boolean, RMainLoopCallbacks) - Constructor for class org.rosuda.JRI.Rengine
-
create and start a new instance of R.
- Rengine() - Constructor for class org.rosuda.JRI.Rengine
-
create a new engine by hooking into an existing, initialized R instance which is calling this constructor.
- REXP - Class in org.rosuda.JRI
-
This class encapsulates and caches R objects as returned from R.
- REXP(Rengine, long) - Constructor for class org.rosuda.JRI.REXP
-
create a REXP directly from a R SEXP reference.
- REXP(Rengine, long, boolean) - Constructor for class org.rosuda.JRI.REXP
-
- REXP() - Constructor for class org.rosuda.JRI.REXP
-
construct a new, empty (NULL) expression w/o attribute
- REXP(int, Object) - Constructor for class org.rosuda.JRI.REXP
-
construct a new xpression of type t and content o, but no attribute
- REXP(int, Object, REXP) - Constructor for class org.rosuda.JRI.REXP
-
construct a new xpression of type t, content o and attribute at
- REXP(double[]) - Constructor for class org.rosuda.JRI.REXP
-
construct a new xpression of type XT_ARRAY_DOUBLE and content val
- REXP(int[]) - Constructor for class org.rosuda.JRI.REXP
-
construct a new xpression of type XT_ARRAY_INT and content val
- REXP(String[]) - Constructor for class org.rosuda.JRI.REXP
-
construct a new xpression of type XT_ARRAY_INT and content val
- REXP(boolean[]) - Constructor for class org.rosuda.JRI.REXP
-
construct new expression with the contents of a boolean vector
- RFactor - Class in org.rosuda.JRI
-
representation of a factor variable.
- RFactor() - Constructor for class org.rosuda.JRI.RFactor
-
create a new, empty factor var
- RFactor(int[], String[]) - Constructor for class org.rosuda.JRI.RFactor
-
create a new factor variable, based on the supplied arrays.
- rFlushConsole(Rengine) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R requests the console to flush any buffered output
- RList - Class in org.rosuda.JRI
-
implementation of R-lists
This is rather preliminary and may change in future since it's not really proper.
- RList() - Constructor for class org.rosuda.JRI.RList
-
constructs an empty list
- RList(RVector) - Constructor for class org.rosuda.JRI.RList
-
fake constructor to keep compatibility with Rserve (for now, will be gone soon)
- RList(REXP, REXP) - Constructor for class org.rosuda.JRI.RList
-
constructs an initialized list
- RList(REXP, REXP, REXP) - Constructor for class org.rosuda.JRI.RList
-
constructs an initialized list
- rLoadHistory(Rengine, String) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called to load the contents of the history
- RMainLoopCallbacks - Interface in org.rosuda.JRI
-
Interface which must be implmented by any class that wants to pose as the call-back handler for R event loop callbacks.
- rniAssign(String, long, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: assign a value to an environment
- rniCAR(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get CAR of a dotted-pair list (LISTSXP)
- rniCDR(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get CDR of a dotted-pair list (LISTSXP)
- rniCons(long, long, long, boolean) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a dotted-pair list (LISTSXP or LANGSXP)
- rniCons(long, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a dotted-pair list (LISTSXP)
- rniEval(long, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: evaluate R expression (do NOT use directly unless you know exactly what you're doing, where possible use
Rengine.eval(java.lang.String) instead).
- rniExpType(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the SEXP type
- rniFindVar(String, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: find variable in an environment
- rniGetAttr(long, String) - Method in class org.rosuda.JRI.Rengine
-
RNI: get an attribute
- rniGetAttrNames(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get attribute names
- rniGetBoolArrayI(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of a logical vector in its integer array form
- rniGetDoubleArray(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of a numeric vector
- rniGetIntArray(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of an integer vector
- rniGetList(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: retrieve CAR part of a dotted-part list recursively as an array of references
- rniGetRawArray(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of a raw vector
- rniGetString(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of the first entry of a character vector
- rniGetStringArray(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of a character vector
- rniGetSymbolName(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: retrieve name of a symbol (c.f.
- rniGetVector(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get the contents of a generic vector (aka list)
- rniGetVersion() - Static method in class org.rosuda.JRI.Rengine
-
RNI: return the API version of the native library
- rniIdle() - Method in class org.rosuda.JRI.Rengine
-
RNI: run other event handlers in R
- rniInherits(long, String) - Method in class org.rosuda.JRI.Rengine
-
RNI: determines whether an R object instance inherits from a specific class (S3 for now)
- rniInstallSymbol(String) - Method in class org.rosuda.JRI.Rengine
-
RNI: install a symbol name
- rniJavaToXref(Object) - Method in class org.rosuda.JRI.Rengine
-
RNI: convert Java object to EXTPTRSEXP
- rniLCons(long, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a dotted-pair language list (LANGSXP)
- rniListEnv(long, boolean) - Method in class org.rosuda.JRI.Rengine
-
RNI: return the list of variable names of an environment
- rniParentEnv(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: return the parent environment
- rniParse(String, int) - Method in class org.rosuda.JRI.Rengine
-
RNI: parses a string into R expressions (do NOT use directly unless you know exactly what you're doing, where possible use
Rengine.eval(java.lang.String) instead).
- rniPreserve(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: preserve object (prevent grabage collection in R) until rniRelease is called.
- rniPrint(String, int) - Method in class org.rosuda.JRI.Rengine
-
RNI: print.
- rniPrintValue(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: print the value of a given R object (via print or show method) to the console
- rniProtect(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: protect an R object (c.f.
- rniPutBoolArray(boolean[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a boolean vector
- rniPutBoolArrayI(int[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a boolean vector from an integer vector
- rniPutDoubleArray(double[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a numeric vector
- rniPutIntArray(int[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create an integer vector
- rniPutList(long[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a dotted-pair list (LISTSXP)
- rniPutRawArray(byte[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a raw vector
- rniPutString(String) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a character vector of the length 1
- rniPutStringArray(String[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a character vector
- rniPutVector(long[]) - Method in class org.rosuda.JRI.Rengine
-
RNI: create a generic vector (aka a list)
- rniRelease(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: release object previously preserved via rniPreserve.
- rniRJavaLock() - Method in class org.rosuda.JRI.Rengine
-
RNI: lock rJava to allow callbacks - this interrupts R event loop until @link{rniRJavaUnlock} is called.
- rniRJavaUnlock() - Method in class org.rosuda.JRI.Rengine
-
RNI: unlock rJava - resumes R event loop.
- rniRunMainLoop() - Method in class org.rosuda.JRI.Rengine
-
RNI: run the main loop.
- rniSetAttr(long, String, long) - Method in class org.rosuda.JRI.Rengine
-
RNI: set an attribute
- rniSetupRJava(int, int) - Method in class org.rosuda.JRI.Rengine
-
RNI: setup IPC with RJava.
- rniSpecialObject(int) - Method in class org.rosuda.JRI.Rengine
-
RNI: return a special object reference.
- rniStop(int) - Method in class org.rosuda.JRI.Rengine
-
RNI: interrupt the R process (if possible).
- rniTAG(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: get TAG of a dotted-pair list (LISTSXP)
- rniUnprotect(int) - Method in class org.rosuda.JRI.Rengine
-
RNI: unprotect last count references (c.f.
- rniXrefToJava(long) - Method in class org.rosuda.JRI.Rengine
-
RNI: convert EXTPTRSEXP to Java object - make sure the pointer is really what you expect, otherwise you'll crash the JVM!
- rReadConsole(Rengine, String, int) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R waits for user input.
- rSaveHistory(Rengine, String) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called to save the contents of the history (the implementation is responsible of keeping track of the history)
- rShowMessage(Rengine, String) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R want to show a warning/error message (not to be confused with messages displayed in the console output)
- rtype - Variable in class org.rosuda.JRI.REXP
-
native type of the represented expression (see ...SXP constants in R).
- run() - Method in class org.rosuda.JRI.Rengine
-
The implementation of the R thread.
- RVector - Class in org.rosuda.JRI
-
class encapsulating named generic vectors in R - do NOT use add/remove directly as names are not synchronized with the contents.
- RVector() - Constructor for class org.rosuda.JRI.RVector
-
- rWriteConsole(Rengine, String, int) - Method in interface org.rosuda.JRI.RMainLoopCallbacks
-
called when R prints output to the console