similar to: Controlling stdin and stdout in an embedded R instance

Displaying 20 results from an estimated 1000 matches similar to: "Controlling stdin and stdout in an embedded R instance"

2009 Sep 03
1
Running an expression 1MN times using embedded R
Hello, I'm evaluating this expression expression({ for(x in 1:5){ .Call('rh_status','x') }}) a million times from a program with R embedded in it. I have attached reproducible code that crashes with Program received signal SIGSEGV, Segmentation fault. 0x00002b499ca40a6e in R_gc_internal (size_needed=0) at memory.c:1309 1309 FORWARD_NODE(R_PPStack[i]); Current language:
2008 Apr 29
2
Calling R from C - part way there but need a push!
Dear All, I've read the manual on "Writing R Extensions" and in particular the part on calling R from C. (Most of the manual is about calling C from R, not the other way around.) The good news is that I can now call _some_ R from C, specifically the R functions which have C header files. However it isn't clear to me how to call R functions that are written in R. I
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
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
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
2007 Apr 03
2
R callbacks
Hi, I'm trying to understand (mostly from the R-exts manual) how to use the callbacks declared in Rinterface.h. As a first attempt, I'm trying to redefine ptr_R_WriteConsole in a very trivial manner. Here's my code: --------------- $ cat altr.c int Rf_initialize_R(int ac, char **av); #define R_INTERFACE_PTRS 1 #include <Rinterface.h> extern int R_running_as_main_program;
2006 Sep 28
2
calling R from within Java, using jri
Hi, I want to call R from within Java, using jri as per http://www.rosuda.org/software/jri/ So I am following the instructions in the README file for JRI 0.2-4. I have run 'sh configure.win' and 'make' and they seemed to be successful. (See below for the output from make, for example.) But when I try 'run.bat rtest' (with and without R command line arguments) the output
2008 Dec 14
1
Help - java.library.path
Hello all, I`m a computer science student from Frankfurt/main (germany). Our student team (10 students) are working on a R/Interface project (Java and R) and we have a problem with R and JRI. We are working on 10 computers with Windows XP SP2, R 2.8.0, jdk1.6.0_11 and the same classpath setttings but our application works only on two computers. We can't explain us this.
2012 Jan 11
1
rjava on FreeBSD
Trying to install Rjava on FreeBSD 9 and am getting the following error: > install.packages('rJava') trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rJava_0.9-3.tar.gz' Content type 'application/x-gzip' length 537153 bytes (524 Kb) opened URL ================================================== downloaded 524 Kb * installing *source* package 'rJava' ... **
2004 Oct 11
1
install failure Ruuid package on OS X
Dear All, When installing the Ruuid package (from Bioconductor) from sources on my MAC (OS X 10.3.5, R version 2.0.0) I get the following errors: m00245:~ ivisser$ R CMD INSTALL -l /Users/ivisser/Library/R/library/ /Users/ivisser/Desktop/Ruuid * Installing *source* package 'Ruuid' ... loading cache ./config.cache checking for glib-config... no checking how to run the C preprocessor...
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
2006 Jun 12
1
Ruuid had non-zero exit status (PR#8965)
> source("http://www.bioconductor.org/biocLite.R") > biocLite(c("Ruuid")) Running getBioC version 0.1.6 with R version 2.3.1 Running biocinstall version 1.8.4 with R version 2.3.1 Your version of R requires version 1.8 of Bioconductor. trying URL 'http://bioconductor.org/packages/1.8/bioc/src/contrib/Ruuid_1.10.0.tar.gz' Content type 'application/x-gzip'
2013 Mar 09
5
question on why Rigroup package moved to Archive on CRAN
Hi, Who should I ask about my package Rigroup_0.83 being moved to Archive status on CRAN and no longer available via install.package? I have no problems with the move if this was simply because of low demand. However, if there was a build issue with the newest releases that caused problems, I would be happy to address it. I'll just ask my students to install it from my own locally hosted
2014 Oct 12
1
Is this an incorrect use of the R-API?
Hi, I am trying to create a small extension for R here for embedding the current time on the R prompt: https://github.com/musically-ut/extPrompt Things seem to be working overall, but `R CMD check .` raised a warning: > File '[truncated]..Rcheck/extPrompt/libs/extPrompt.so?: > Found non-API call to R: ?ptr_R_ReadConsole? > > Compiled code should not call non-API entry points in
2010 Jul 21
1
Plot window does not update in embedded code
Dear list, I am trying to embed R into a C++ program. After some tinkering, reading the documentation and browsing the source code I have this more or less working. A very very condensed and very simplified version of the code is included below. The program can create plots. However, after the plot is initially drawn it is no longer updated. When scaling or updating the plot the window becomes
2010 May 06
1
R on kdeedu-svn library problem
Hello, I am new to this list. ?I am trying to compile the current svn version of kdeedu on an amd64 linux machine ?which uses R and I get the following compiler output. ------------------------------------------- ?79%] Building CXX object cantor/src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/rserver.o $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp: In member function
2007 Sep 13
1
trouble with installing Biobase package
Hi Everybody, I am having a problem with loading Biobase package. I typed 2 lines below at R prompt > source ("http://boconductor.org/biocLite.R") > biocLite (lib="/usr/local/lib/R/library") which attempted to install a bunch of packages with varying degree of success. Out of 29, 13 failed. Biobase is one of them. As a matter of fact, when I looked at logs, most
2005 Oct 17
1
RFC: API to allow identification of warnings and errors in the output stream
Dear R developers, this mail is basically a summary / clarification of some previous mails I sent to this list last week (subject "Catching warning and error output"). Duncan Murdoch pointed out that these were badly organized, and suggested I repost, collecting the main points previously spread out between several mails. Problem statement: In an application embedding R, I would
2008 Jun 02
2
Problemas usando jri0.4-1 y R 2.7.0
Hola, es la primera vez que mando un correo a cualquiera de las listas de correo de R y no se si esta consulta se ajusta al próposito de la r-help list o debería haberlo mandado a otra de las listas que hay. Mi problema es el siguiente: Estoy desarrollando un programa en java con llamadas a R y no puedo usar jri 0.4-1 con la version 2.7 o 2.6 de R. Curiosamente si me funciona si uso jri 0.4 o la
2009 Feb 28
2
Using JRI and Java 1.6 on MAC OS X
Dear R-Help, I am trying to get JRI (the rJava interface allowing Java to connect to R) to work. I was able to run it a week ago when I was doing some testing using Java 1.5. However, I am developing a GUI application using some of the new Java 1.6 features and I just can't get JRI to work with this setup. Here is what I get: Cannot find JRI native library! Please make sure that the JRI