Displaying 20 results from an estimated 1000 matches similar to: "Embedding R and registering routines"
2009 Jan 08
1
Callbacks seems to get GCed.
Dear list,
I am trying to implement a publish-subscribe mechanism in for an embedded
R interpreter. But somehow my registered closures seem to get collected by
the GC, even though I have protected them. I have reducted my code to the
following sample. Sorry if it is a little verbose.
The first couple of call of calls still work, but at some point one of the
callbacks (callback1 in my
2004 Aug 18
3
R as shared library
Hello folks,
I'm embarking on a project to embed R into the Apache web server, and
I'd like your help. Currently, I'm looking for a way for R code to call
back into a shared library from which the R shared library was loaded.
Essentially, apache starts and loads mod_R.so which runs an
initialization routine which calls Rf_initEmbeddedR() and the following
code:
/* override to
2007 Mar 19
3
Rinternals.h and undefined symbols
Hi,
I'm trying to register my native routines using R_registerRoutines
(...). I can compile the code, but the loader cannot resolve the symbol:
undefined symbol:
_Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6
_
$ nm bgx.Rcheck/bgx/libs/bgx.so | grep R_registerRoutines
U
_Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6
2007 Sep 28
5
R-Server remotecontrolled via browser-GUI
dear r-community,
currently i have a workflow as following:
data in online-MYSQL-database via .csv into R for analysis, results
back to mysql.
generating graphics for reports also.
that's ok, but i need some process-optimization.
i'd like to run r directly on the webserver. analysis should work
automatically, after the appropriate r-script was selected in a
browser-gui for R.
until
2003 Dec 09
1
R Interface handholding
Hello,
I need a bit of handholding with R, specifically, with writing
packages for it. I'm a systems programmer, and am, on the request
of several users of our software, working on generating R interfaces.
For starters, I've written the following R function (which compiles):
SEXP myincr(SEXP Rinput)
{ // Returns input integer incremented by one
int input;
SEXP returner;
PROTECT(Rinput =
2012 Jan 19
1
RApache installation problems
Hi all
I was trying to isntall RApache last week but ran into strnge problems that no one else seems to be experiencing. At least I couldn't find anything after extensive googling.
First off, the machine I'm installing on looks like this:
Dell Optiplex 745
32 bit
2GB RAM
Fedora 15
httpd -v
Server version: Apache/2.2.21 (Unix)
Server built: Sep 13 2011 13:46:23
R:
R-2.14.0-3.fc15.i686
2006 Feb 03
2
Infinite loop running Mod_R/Rapache
I installed mod_r according to the specifications, and have been trying
to get the demo script to work correctly. I am running debian, the
latest build of R, apache 2 with prefork mpm, and the latest mod_r. Is
anyone else using this module successfully? I added:
LoadModule R_module mod_R.so
<Location /test/hello>
SetHandler r-handler
Rsource /var/www/html/test.R
RreqHandler
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:
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
2005 Aug 02
0
[ANNOUNCE] mod_R: The R/Apache Integration Project
What is it?
-----------
mod_R is a project dedicated to embedding the R interpreter inside
the Apache 2.0 (and beyond) web server for the purpose of writing web
applications in R. It's composed of three parts:
mod_R: the Apache 2.0 module that implements the glue to load the
R interpreter.
RApache: the R package that provides the API for programming web
applications
2005 Aug 02
0
[ANNOUNCE] mod_R: The R/Apache Integration Project
What is it?
-----------
mod_R is a project dedicated to embedding the R interpreter inside
the Apache 2.0 (and beyond) web server for the purpose of writing web
applications in R. It's composed of three parts:
mod_R: the Apache 2.0 module that implements the glue to load the
R interpreter.
RApache: the R package that provides the API for programming web
applications
2012 Feb 06
1
Segfault on ".C" registration via R_CMethodDef according to 'Writing R Extensions'.
Dear R List,
I encountered a serious problem regarding the registration of ".C" when following the documentation "Writing R Extensions"
that leads to a segmentation fault (tested on windows and mac os x).
The registration mechanism for ".C" routines via R_registerRoutines and
the R_CMethodDef structure has been enhanced recently with the
addition of two fields, one
2008 May 27
1
error: C stack usage is too close to the limit.
I am trying to set up a RApache server on my Ubuntu 8.04. I have installed
apache2, R-2.7.0, and the RApache plugin. Both Apache and R seem to work
fine, but whenever i try to use the plugin i get this error: C stack usage
is too close to the limit.
I have tried to recompile apache2, R, and RApache, but i keep getting the
error. The weird thing is, i had exactly the same problem when i installed
2012 Feb 06
2
R-RApache to develop Knowledge Base
Hi all,
I need your opinion about using R-Rapache to build a knowlegde base to
bioinformatics field.
I have copious amount of genotype information (some few million records)
and would like to store it in MySQL database. Then, using RMySQL connector
I would like to use it for further analysis using R over a web interface.
The web interface which I am thnking off, just does not serve the purose of
2003 May 16
1
Reloading a shared library with dyn.load
Hi,
I'm using dyn.load to load a shared library (compiled from C
code) into R. If I dyn.unload it and then dyn.load it again, I
get an hourglass icon in Rgui (R 1.7.0, Win 2000), and it
just sits there forever. I can't press Escape to stop the
current computation, but I can close Rgui without resorting to
using the Task Manager.
Is it a problem with my use of R_alloc? Do I need
2011 Nov 11
1
When collected warnings exceeds 50
Hi,
I've been tracking down a memory leak in an rApache application,
http://data.vanderbilt.edu/rapache/bbplot. The code was deployed in
2007 and has survived numerous upgrades of both R and rApache
(including upgrades and bugs in RMySQL). It's written in such a way so
that web crawlers will download every possible URL the app will
create. It's not a high-traffic app, but just about
2012 Nov 22
1
rapache memory problem
Hi all;
Now I'm developing web application by using rapache in ubuntu.
My problem is that as users execute the application, the server PC cumulates
memory.
After users close or refresh the application page, the server PC memory is
still cumulated.
Now I'm renewing apache machine by manually in terminal.
Is there any way to kill memory when users refresh or close the application
page?
2011 Jul 06
1
problem loading rgdal with Rapache, problem solved due to libexpat with apache.
Has anyone had problems with Rapache that don't show up on command line
execution of R? I just ran into this loading rgdal in Rapache page and having
a problem with loading shared object. The final complaint was that Stop_XMLParser
was undefined- this was surprising since grep -l showed it in expat lib and it worked
fine from command line. Finally, I noted the search path had apache/lib ahead
2007 Apr 16
2
Question for install Rapache package.
Hi, this is Charlie and I am trying to embed R in my apache server. However, I am having problem with installation. The R projet says that we can install add-on package with command $R CMD (rapache.0.1.4.tar.gz). However, I try to use it in command windows (windows xp) and an error shows. Please tell me when I can use the command (in c?? or in the same folder with the file). thx.
[[alternative
2012 Jan 11
1
Rook: software and specification for R web applications and servers
Dear ?useRs,
Rook version 1.0-3 has been submitted to CRAN. In the mean time you
can get it here:
https://github.com/jeffreyhorner/rRack/blob/master/Rook_1.0-3.tar.gz
The latest release contains support for deployment with rApache. Please see
3.6.5 and 3.6.6 under section 'Configuring rApache' in the manual:
http://www.rapache.net/manual.html#Configuring_rapache
What is Rook? A