search for: rvector

Displaying 14 results from an estimated 14 matches for "rvector".

Did you mean: vector
2010 Mar 24
0
Trying to create R dataframe with JRI
...tallation into /lib (now /lib contains jri.dll, JRI.jar and R.dll) and wrote an simple test application that simply calls a command and does not do much parameter assignment (except strings and simple integers) -- all worked fine. Now I want to feed data as a dataframe to R. I thought I can make RVector objects, create RList objects from that and create REXP dataframes from those lists. I found an example here: http://code.google.com/p/jamsim/source/browse/trunk/JAMSIM/src/org/jamsim/r/RInterfaceHL.java?spec=svn52&r=52 ... RList rlist = new RList(vectors.size(), true); ... // turn the rlist...
2004 Jan 09
1
Call and memory
...istTest" <- function(X,N,k) { .Call("mList",as.double(X),as.integer(N),as.integer(k)); } SEXP mList( SEXP Xi, SEXP Ni, SEXP ki ) { double *pX=NUMERIC_POINTER(Xi); int N=INTEGER_POINTER(Ni)[0]; int k=INTEGER_POINTER(ki)[0]; SEXP alist; SEXP avector; SEXP nvector; SEXP rvector; SEXP kvector; int n; int i; transposeMatrix(pX,N,k); n=4; PROTECT(alist=NEW_LIST(n)); PROTECT(avector=NEW_NUMERIC(200)); for (i=0;i<200;i++) { NUMERIC_POINTER(avector)[i]=pX[i]; } SET_ELEMENT(alist,0,avector); UNPROTECT(1); PROTECT(nvector=NEW_INTEGER(1)); INTEGER_POINTER(nvec...
2016 May 12
3
Single-threaded aspect
...ch R objects, or call back into R, for fear of any assignment or allocation triggering an R event. R being single-threaded it cannot do this. My answer to this problem is to only use non-R data structures. That is what RcpParallel does in the actual parallel code portions in all examples -- types RVector and RMatrix do NOT connect back to R. There are several working examples. That is also what the OpenMP examples at the Rcpp Gallery do. Charles seems to be replying 'but I use XPtr' or 'I use XPtr on arma::mat or Eigen::Matrixxd' and seems to forget that these are proxy objects to...
2016 May 12
5
Single-threaded aspect
...eans that R is single threaded? I am trying to understand what is actually going on inside R when users want to parallelize code. For example, using mclapply or foreach (with some backend) somehow allows users to benefit from multiple CPUs. Similarly there is the RcppParallel package for RMatrix/RVector objects. But none of these address the general XPtr objects in Rcpp. Some readers here may recognize my question on SO ( http://stackoverflow.com/questions/37167479/rcpp-parallelize-functions-that-return-xptr) where I was curious about parallel calls to C++/Rcpp functions that return XPtr objects....
2016 May 12
0
Single-threaded aspect
...That explains much more of what I was looking for from the R side. Dirk, I'm sorry if I seem hung up on anything here but I am trying to understand the details. My reply about XPtr or XPtr on arma/Eigen was to confirm my understanding was correct, which it appears it was. I was not aware the RVector/RMatrix objects don't connect to R as I am just now familiarizing myself with the package, that explains more of my confusion. I will look at doing work within the compiled code as you have suggested. Regards, Charles On Thu, May 12, 2016 at 9:18 AM, Dirk Eddelbuettel <edd at debian.org&gt...
2016 May 12
1
Single-threaded aspect
...readed? I am > trying to understand what is actually going on inside R when users want to > parallelize code. For example, using mclapply or foreach (with some > backend) somehow allows users to benefit from multiple CPUs. > > Similarly there is the RcppParallel package for RMatrix/RVector objects. > But none of these address the general XPtr objects in Rcpp. Some readers > here may recognize my question on SO ( > > http://stackoverflow.com/questions/37167479/rcpp-parallelize-functions-that-return-xptr > ) > where I was curious about parallel calls to C++/Rcpp func...
2016 May 12
0
Single-threaded aspect
...t; trying to understand what is actually going on inside R when users want to >> parallelize code. For example, using mclapply or foreach (with some >> backend) somehow allows users to benefit from multiple CPUs. >> >> Similarly there is the RcppParallel package for RMatrix/RVector objects. >> But none of these address the general XPtr objects in Rcpp. Some readers >> here may recognize my question on SO ( >> >> http://stackoverflow.com/questions/37167479/rcpp-parallelize-functions-that-return-xptr >> ) >> where I was curious about paralle...
2013 Feb 24
7
Help: rJava ubuntu 12.04
...f9a069/rJava/jri» make -C src JRI.jar make[2]: se ingresa al directorio «/tmp/RtmpCErgmn/R.INSTALL57e71df9a069/rJava/jri/src» /usr/bin/javac -target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java ../RConsoleOutputStream.java ../REXP.java ../RFactor.java ../RList.java ../RMainLoopCallbacks.java ../RVector.java ../Rengine.java ../package-info.java warning: [options] bootstrap class path not set in conjunction with -source 1.4 1 warning /usr/bin/javah -d . -classpath . org.rosuda.JRI.Rengine gcc -std=gnu99 -c -o Rengine.o Rengine.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -O2 -pipe -g -I/usr/...
2007 Jan 31
0
Fwd: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs
....INSTALL.G32323/rJava/jri' make -C src JRI.jar make[2]: Entering directory `/tmp/R.INSTALL.G32323/rJava/jri/src' /usr/local/jdk1.5.0_11/bin/javac -target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java ../Rengine.java ../REXP.java ../RFactor.java ../RList.java ../RMainLoopCallbacks.java ../RVector.java /usr/local/jdk1.5.0_11/bin/javah -d . -classpath . org.rosuda.JRI.Rengine gcc -c -o Rengine.o Rengine.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -O3 -g -std=gnu99 -I/usr/local/jdk1.5.0_11/jre/../include -I/usr/local/jdk1.5.0_11/jre/../include/linux -fPIC -I/usr/local/jdk1.5.0_11/jre/....
2020 Mar 29
1
[BULK] Re: status of Java & rJava?
...o javah.exe - using javac -h . instead Creating Makefiles ... Configuration done. make -C src JRI.jar make[1]: Entering directory '/Users/spenc/AppData/Local/Temp/RtmpQbnYkA/R.INSTALL8ec5478248a/rJava/jri/src' C:/PROGRA~1/Java/JRE18~1.0_2/bin/javac -h . -d . ../RList.java ../RBool.java ../RVector.java ../RMainLoopCallbacks.java ../RConsoleOutputStream.java ../Mutex.java ../Rengine.java ../REXP.java ../RFactor.java ../package-info.java sh: C:/PROGRA~1/Java/JRE18~1.0_2/bin/javac: No such file or directory make[1]: *** [Makefile.all:41: org/rosuda/JRI/Rengine.class] Error 127 make[1]: Leavin...
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
...ogram and the R program itself and its actual result run in isolation: Java application: import java.io.*; import java.awt.Frame; import java.awt.FileDialog; import java.util.Enumeration; import org.rosuda.JRI.Rengine; import org.rosuda.JRI.REXP; import org.rosuda.JRI.RList; import org.rosuda.JRI.RVector; import org.rosuda.JRI.RMainLoopCallbacks; public class Main { public static void main(String[] args) { // just making sure we have the right version of everything if (!Rengine.versionCheck()) { System.err.println("** Version mismatch - Java files don't ma...
2012 Jun 27
1
rJava Error
...9; make -C src JRI.jar make[2]: Entering directory `/tmp/RtmpUyYk4N/R.INSTALL6645c827c46/rJava/jri/src' /usr/local/Java/jre/../bin/javac -target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java ../RConsoleOutputStream.java ../REXP.java ../RFactor.java ../RList.java ../RMainLoopCallbacks.java ../RVector.java ../Rengine.java ../package-info.java warning: [options] bootstrap class path not set in conjunction with -source 1.4 1 warning /usr/local/Java/jre/../bin/javah -d . -classpath . org.rosuda.JRI.Rengine gcc -std=gnu99 -c -o Rengine.o Rengine.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -g...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...LNGf/rJava/jri' make -C src JRI.jar make[2]: Entering directory `/tmp/R.INSTALL.bELNGf/rJava/jri/src' /usr/bin/javac -target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java ../RConsoleOutputStream.java ../Rengine.java ../REXP.java ../RFactor.java ../RList.java ../RMainLoopCallbacks.java ../RVector.java /usr/bin/javah -d . -classpath . org.rosuda.JRI.Rengine gcc -std=gnu99 -c -o Rengine.o Rengine.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -g -O2 -I/usr/lib/jvm/java-6-sun-1.6.0.12/jre/../include -I/usr/lib/jvm/java-6-sun-1.6.0.12/jre/../include/linux -fpic -I/usr/lib/jvm/java-6-sun-1....
2020 Mar 28
5
status of Java & rJava?
Hello, All: ????? Is Java being deprecated for R? ????? I ask, because I've been unable to get rJava 0.9-11 to work under either macOS 10.15 or Windows 10, and I can't get rJava 0.9-12 to install -- and my Ecfun package uses it:?? I can't get "R CMD build Ecfun" to work on my Mac nor "R CMD check Ecfun_0.2-4" under Windows.? Travis CI builds