search for: rvectors

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

Did you mean: vectors
2010 Mar 24
0
Trying to create R dataframe with JRI
...; ... // turn the rlist into a dataframe REXP dataframe = REXP.createDataFrame(rlist); .... both of these constructors do not exist in JRI (apparently). They must use a different set of libraries (?) and I am now puzzeled. How can I create a dataframe from Strings and integers? I managed to create RVectors: ArrayList<RVector> vectors = new ArrayList<RVector>(); for (Feature feature : freqFeatures){ RVector rVector = new RVector(); rVector.addAll(feature.getParameters().values()); vectors.add(rVector); } but I miss the next steps. Anybody can give some example code? (JRI source co...
2004 Jan 09
1
Call and memory
I use a large real matrix, X, in C code that is passed from R and transposed in place in the C code. I would like to conserve memory and, if possible, allocate space for only one copy of X -- hence I would like to pass a pointer to the data in the X object to the C code. The Writing R Extensions manual says that neither .Call nor .External copy their arguments. They also say that these
2016 May 12
3
Single-threaded aspect
On 12 May 2016 at 13:11, Mark van der Loo wrote: | Charles, | | 1. Perhaps this question is better directed at the R-help or | R-pacakge-devel mailinglist. | | 2. It basically means that R itself can only evaluate one R expression at | the time. | | The parallel package circumvents this by starting multiple R-sessions and | dividing workload. | | Compiled code called by R (such as C++ code
2016 May 12
5
Single-threaded aspect
R Developers, Could someone help explain what it means 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
2016 May 12
0
Single-threaded aspect
Thank you Simon for the detailed reply. 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
2016 May 12
1
Single-threaded aspect
Charles, 1. Perhaps this question is better directed at the R-help or R-pacakge-devel mailinglist. 2. It basically means that R itself can only evaluate one R expression at the time. The parallel package circumvents this by starting multiple R-sessions and dividing workload. Compiled code called by R (such as C++ code through RCpp or C-code through base R's interface) can execute
2016 May 12
0
Single-threaded aspect
Thanks for the replies. Regarding the answer by Dirk, I didn't feel like I still understood the reasoning why mclapply or foreach cannot handle XPtr objects. Instead of cluttering the SO question with comments I was getting the impression that this was a limitation inherited with R objects (which XPtr is supposed to be a proxy for an R object according to Dirk's comment). If this is not
2013 Feb 24
7
Help: rJava ubuntu 12.04
Hola buenas, utlimamente estoy teniendo más problemas con mi equipo de los que debería. Bajo windows no me funciona bien Rstudio y bajo linux soy incapaz de instalar rJava. ¿Alguien que sepa de Linux me podría ayudar? He probado a instalar los openJDK y nada. También he probado, para instalar Java, a hacer un: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update && sudo
2007 Jan 31
0
Fwd: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs
Could some pls help with this error message. Pls see below thanks Rupak ---------- Forwarded message ---------- From: Rupak Khurana <khurana.rupak@gmail.com> Date: Jan 31, 2007 2:46 PM Subject: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs To: simon.urbanek@r-project.org Simon I am unable to load rJava. Pls see the log below. Any help is welcome and appreciated. thanks
2020 Mar 29
1
[BULK] Re: status of Java & rJava?
Hi, Simon et al.: ????? My attempts to install rJava 0.9-12 from source failed under both macOS 10.15.4 and Windows 10. ????? Below please find what I got just now trying "update.packages()" and selecting "install from sources" on both computers followed by "sessionInfo()" in each case. ????? Thanks for your help. ????? Spencer Graves
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
I am using JRI (Java R Interface) library in order to call R from within my Java application. But since the "rmu1" and "rmu2" ,see the following code, are objects of type S4 once i run the application the value of Null will be returned for both of them. On this regard, i would appreciate it if anyone can tell me how i am going to display and/ or convert these objects to Java
2012 Jun 27
1
rJava Error
Hi, I'm receiving an error when I am trying to install rJava. I have posted the error below. RHive_0.0-6.tar.gz rJava_0.9-3.tar.gz RJDBC_0.2-0.tar.gz Rserve_0.6-8.tar.gz [root at localhost Package]# R CMD INSTALL rJava_0.9-3.tar.gz * installing to library ?/usr/local/lib64/R/library? * installing *source* package ?rJava? ... ** package ?rJava? successfully unpacked and MD5 sums checked
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
I have been futzing around for days tying to get rJava to install on my freshly build Debian Lenny installation. I have R-2.9.1 installed from source in my R_HOME directory and R-2.7.1 installed via apt-get install r-recommended. I was tried many different things, but by accident started up R-2.7.1 as root and viola, successful install. I immediately exited out of R-2.7.1 and started R-2.9.1 as
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