Displaying 20 results from an estimated 500 matches similar to: "R callbacks"
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
2007 Apr 07
2
Rf_PrintValue problem with methods::show
Hi,
I think this is a bug (even though I can't find documentation
explicitly saying that it should work). Basically, Rf_PrintValue(obj)
fails when 'obj' is an S4 object that should be printed using show()
rather than print(). From the error message I'm guessing that the need
to use show is detected correctly but then show is not found.
"cbind2" in the code below is just
2010 Oct 29
1
NetWorkSpace from REvolution; Distributed Computing setup questions
***Summary:***
I'm setting up a cluster using netWorkSpace, and I'm having issues
with the sleigh initialization. My R function to initialize the sleigh
succeeds and the sleigh appears to be ready, but I get apparently
conflicting information from "status(s)", "rankCount(s)", and "s"; and
basic sleigh functions cause the sleigh to hang indefinitely.
Also,
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
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:
2010 Jan 26
3
Problem with "nls" function
Dear R users,
I have a response variable in a csv file called "y" and a matrix of
predictor variables in a csv file called "mat". I have used the function
"nls" I have specified the nonlinear relation between these variable.The
code I have witten is called Rprog which begins with the phrase:
L.minor.m1<-nls(Y~a ....etc..
The program when I execute the program, I
2003 Oct 09
1
Key-based auth fails - OpenSSH 3.7.1p2 (cygwin)
Hey all, Maybe someone has seen my problem before with OpenSSH under
cygwin. I'm trying to use key-based authentication and it's failing.
Configuration, permissions and -ddd information is provided in this email.
Thanks,
Brian Hayward
---------- Forwarded message ----------
Date: Thu, 9 Oct 2003 10:12:47 -0500 (CDT)
From: hayward at slothmud.org
To: cygwin at cygwin.com
Subject: Re:
2006 Apr 04
1
Mpirun with R CMD scripts
Hi,
I am working on a 64-bit rocks cluster and am relatively new to the
R package. I am trying to get Snow working with R and Rmpi and have
run into the following issue. R is able to load the Rmpi and snow
libraries and is able to run simple commands both interactively and
batch as follows:
-------------------------------------------------------------------------------------------------------
2005 May 01
2
eigen() may fail for some symmetric matrices, affects mvrnorm()
Hi all,
Recently our statistics students noticed that their Gibbs samplers were
crashing due to some NaNs in some parameters. The NaNs came from
mvrnorm (Ripley & Venables' MASS package multivariate normal sampling
function) and with some more investigation it turned out that they were
generated by function eigen, the eigenvalue computing function. The
problem did not seem to happen
2009 Jan 09
1
snow and different R versions
Dear Luke and others,
I have many R versions on my machine and want to start a particular
one when snow builds its cluster. (The same version I start snow
from.) It seems that everything is set up correctly in
defaultClusterOptions:
> mget(ls(defaultClusterOptions), defaultClusterOptions)
$homogeneous
[1] TRUE
$manual
[1] FALSE
$master
nodename
"maya.unil.ch"
$outfile
[1]
2007 Sep 03
1
Snow on Windows Cluster
Hello,
the package snow is not working on a windows cluster with MPICH2 and
Rmpi. There is an error in makeCluster:
launch failed: CreateProcess(/usr/bin/env
"RPROG="C:\Programme\R\R-2.5.1\bin\R" "OUT=/dev/null" "R_LIBS="
C:/Programme/R/R-2.5.1/library/snow/RMPInode.sh) on 'cl1' failed, error
3 - Das System kann den angegbenen Pfad nicht finden.
I
2015 Jun 16
1
back port of Bug 15899 fix missing from R 3.2.1 RC release!!!
Is there a reason why the fix for Bug 15899 - Omitted 'extern' on
'R_running_as_main_program' after refactor can cause linker errors for
applications embedding R...
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15899
was never back ported for R 3.3 for the R 3.2.1 release? Restoring
that omitted 'extern' to the declaration of 'int
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
2010 Jan 04
1
bin/exec/R coredumps (PR#14177)
Full_Name: Jens Elkner
Version: 2.10.1
OS: Solaris
Submission from: (NULL) (87.188.113.172)
elkner.idev2 elkner/build/R-2.10.1 > bin/exec/R -e
Segmentation fault (core dumped)
elkner.idev2 elkner/build/R-2.10.1 > dbx bin/exec/R core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your
.dbxrc
Reading R
core
2007 Jan 30
1
Solaris 10 compilation issue
I am trying to compile R-2.4.1 in 64-bit on Solaris 10 running on AMD
hardware. I am trying to do this with Sun Studio 11.
My config.site looks like this:
#! /bin/sh
AR="/usr/ccs/bin/ar"
TEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/tex"
LATEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/latex"
PDFTEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/pdftex"
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
I am trying to compile R-2.4.1 in 64-bit on Solaris 10 running on AMD
hardware. I am trying to do this with Sun Studio 11.
My config.site looks like this:
#! /bin/sh
AR="/usr/ccs/bin/ar"
TEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/tex"
LATEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/latex"
PDFTEX="/usr/local/teTeX/bin/i386-pc-solaris2.10/pdftex"
2012 Apr 23
2
dsync on large mailbox "fails"
I've been trying to convert an existing set of mbox mail to maildir
using dsync, but it seems to fail when it gets to the large boxes.
$ dsync -Dv mirror maildir:~/Maildir
Everything seems to work reasonably well until the first of the large
boxes hits:
dsync(jeff): Warning: Maildir /home/jeff/Maildir/.cron.2010-07-10:
Synchronization took 1210 seconds (102289 new msgs, 0 flag change
2011 Jun 16
4
Controlling stdin and stdout in an embedded R instance
Hello,
I am very new to R but my question is with respect to the C API for
working with an embedded R console. I have been able to start and stop
an embedded R console from within a C program as well as use the API to
execute commands in it. I am seeking a mechanism to individually send
native R commands to an embedded console and then consume the output of
these commands. Specifically, I
2007 Jun 28
1
How to set R_CStackLimit
Hi,
I have tried to disable stack checking by set R_CStackLimit to -1. However,
it always crashes my win32 multiple threads program. I am using R-2.5.0. My
code looks like:
#include <Rversion.h>
#if (R_VERSION >= R_Version(2,3,0))
#define R_INTERFACE_PTRS 1
#define CSTACK_DEFNS 1
#include <Rinterface.h>
#endif
and then, add below line to my main function:
R_CStackLimit =
2009 May 19
2
About " Error: C stack usage is too close to the limit"
Hi everyone!
I meet one problem when embedding R in C code, when I run the the R code in one child thread ,
it always print error info:
Error: C stack usage is too close to the limit
I also try to set R_CStackLimit = (uintptr_t)-1 to disable the C stack check as the R-exts doc say,
but it still does not work, the error info still exist.
Besides it is interesting that if i