Displaying 20 results from an estimated 1000 matches similar to: "Printing warning messages around R_tryEval"
2023 Apr 26
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
? Sun, 23 Apr 2023 13:33:16 -0400
Laurent Gautier <lgautier at gmail.com> ?????:
> When tracing what happens during an error I found that
> verrorcall_dflt() in src/main/errors.c calls PrintWarnings(). That
> function is not part of R's C-API though.
I've tried reading the source code and came to a similar conclusion.
PrintWarnings() is required for warnings() to work
2023 Apr 23
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
Hi,
I have an embedded R, with the evaluation of expressions happening over
time during the lifespan of the process. I tried either `R_eval()` and
`R_tryEval()` for the evaluation. The issue I have is that the processing
of warnings does not happen until the process exits and/or R is shut down.
Evaluating `warnings()` returns NULL (NILSXP).
It seems like the warnings are stuck in a list out of
2007 Feb 21
3
non-interactive R_tryEval does not return
...at least I think that is what happens, at least on some
configurations. Here's a repeatable example:
cd R_HOME/tests/Embedding
touch tmp.R
make tryEval
and then (correct)
> ./tryEval --slave
Error in sqrt("") : Non-numeric argument to mathematical function
Caught an error calling sqrt(). Try again with a different argument.
[1] 3
versus (non-interactive; no return)
>
2009 Jan 07
1
Compiling R for Solaris 10 Intel
Hi,
I downloaded 2.8.1 and tried to compile it using gcc 3.4.6. (simple install, just ./configure, make, make check, make install)
I found that it compiled and went through the tests fine.
The foreign library, however, that seems to be segfaulting on me (see output below). I did see an old posting about a similar problem, but there was no resolution. Have other people experienced this at all?
2012 May 15
1
KEGGSOAP installation error
Hello,
I'm trying to install KEGGSOAP with bioconductor but i'm facing this
problem:
/> biocLite("KEGGSOAP")
BioC_mirror: http://bioconductor.org
Using R version 2.15, BiocInstaller version 1.4.4.
Installing package(s) 'KEGGSOAP'
trying URL
'http://www.bioconductor.org/packages/2.10/bioc/src/contrib/KEGGSOAP_1.30.0.tar.gz'
Content type
2007 Dec 10
1
Building R on Sun Solaris 10 (SPARC) using Sun Studio 12
R Help List:
Just curious if anyone has successfully built R on a SPARC
platform running Sun Solaris 10 using the latest Sun Studio
12 set of compilers. If so, I would be interested in the
compile flags that you used.
I have tried several different builds of version 2.5.1, 2.6.0,
and 2.6.1 using various different compile flags and I am able
to compile and check, but for whatever reason, the
2010 Oct 01
2
Will PrintWarnings remain non static?
Hi,
The C function PrintWarnings is currently not in the C API, but it is
declared non static in the svn trunk as of revision 53110 . As this is
the only function that creates the last.warning object used by the R
function warnings(), I think it would be useful for programs that
embed R to be able to call it.
So, will it remain non static, that is callable although it's not
declared in the
2016 Jul 07
1
Detecting user interrupts in R_tryEval
Is there any way to distinguish between an error and a user
interruption in R_tryEval? In both cases the ErrorOccurred argument is
set to 1. For my application I need a different action in case of a
SIGINT.
>From the source code I infer that R_tryEval basically wraps eval in
R_ToplevelExec, which returns TRUE if fun returns normally, FALSE if
it results in a jump to top level. However both an
2009 Nov 14
1
R_tryEval for OCaml-R.
Hello.
I'm currently working on the OCaml-R binding allowing to call R code
from Objective Caml.
As Objective Caml is a functional language, I'd like the binding to be
as 'functional' as possible. Specifically, this means that I'd like
using the R_tryEval function and all related entry points in libR.so.
I've had a look at R-exts.pdf, but R_tryEval is not documented.
2018 Sep 19
5
segfault issue with parallel::mclapply and download.file() on Mac OS X
I have an lapply function call that I want to parallelize. Below is a very
simplified version of the code:
url_base <- "https://cloud.r-project.org/src/contrib/"
files <- c("A3_1.0.0.tar.gz", "ABC.RAP_0.9.0.tar.gz")
res <- parallel::mclapply(files, function(s) download.file(paste0(url_base,
s), s))
Instead of download a couple of files in parallel, I get a
2007 Feb 22
1
R_tryEval not properly documented in 'Writing R Extensions' (PR#9524)
Full_Name: Byron Ellis
Version: 2.4.1
OS: N/A
Submission from: (NULL) (75.55.126.10)
R_tryEval is implied to be in the public API by 'Embedding R in Other
Applications,' but not documented in 'Writing R Extensions.' This would seem to
be an oversight given the dependence of many applications including but not
limited to the official OS X GUI on this function.
2009 Jun 16
1
calling handlers within R_tryEval
Hello,
When using R_tryEval (from JRI in my case), is there a way to setup
error recovery strategy and more generally calling handlers.
From my reading of context.c, R_tryEval calls R_ToplevelExec which
creates a context like this:
begincontext(&thiscontext, CTXT_TOPLEVEL, R_NilValue, R_GlobalEnv,
R_BaseEnv, R_NilValue, R_NilValue);
so I guess what I am trying to do is add
2007 Feb 22
0
R_tryEval not properly documented in 'Writing R Extensions' (PR#9525)
On Thu, 22 Feb 2007, ellis at stat.harvard.edu wrote:
> Full_Name: Byron Ellis
> Version: 2.4.1
> OS: N/A
> Submission from: (NULL) (75.55.126.10)
>
>
> R_tryEval is implied to be in the public API by 'Embedding R in Other
> Applications,' but not documented in 'Writing R Extensions.' This would seem to
> be an oversight given the dependence of many
2010 Nov 09
1
R-2.12.0 problem on Solaris 10
It's been a few days I cannot compile to get R-2.12.0 working at sparc Solaris 10. Seems the R software installation is OK, but the recommended package called Matrix stopped me, since I can finish the installation with the configure option -with-recommended-packages=no. I then run
Ø Install.packages("Matrix")
Then last few lines of output are the following,
28: tryCatch(expr,
2007 Apr 06
2
wishlist: additional argument in R_tryEval (Rinternals.h)
Hi,
R_tryEval, exported in Rinternals.h but not part of the API, is
currently defined as:
R_tryEval(SEXP e, SEXP env, int *ErrorOccurred);
I'm trying to embed R in an application (basically yet another GUI),
and this has been very helpful to catch errors. It would be even more
helpful if it also gave access to the visibility flag. I can wrap this
in a call to withVisible, and that works
2013 Jun 07
1
cannot load pbdMPI package after compilation
Hello,
I try to install pbdMPI.
Compilation successful, but load fails with segfault.
Is anyone can help me?
R version 3.0.0
pbdMPI version 0.1-6
Intel compiler version 13.1.1
OpenMPI version 1.6.4-1
CPU Intel x86_64
# R CMD INSTALL pbdMPI_0.1-6.tar.gz
..
....
checking for gcc... icc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name...
2010 Feb 08
2
Error on start R in server
Hello all,
(Thank for your reply)
I have a web-application in Apache Tomcat, when i start R in this
application,
I used packe RSJava
Code
ROmegahatInterpreter interp;
String [] rargs = {"--no-save"};
REvaluator e;
interp = new ROmegahatInterpreter (
ROmegahatInterpreter.fixArgs(rargs),false );
e =new REvaluator ();
Errors
================
R version 2.10.1 (2009-12-14)
2008 Mar 12
1
gracefully handing a library load error
I have an R program I am attempting to use to generate some SVGs. I've been
using the cairoDevice library. When running a session not connected to an X
session (like if I'm sshed in), attempting "library(cairoDevice)" causes:
*** caught segfault ***
address 0x8, cause 'memory not mapped'
Traceback:
1: .C("R_gtk_setEventHandler", PACKAGE =
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
2009 Dec 30
1
seg-fault... but on what
I got the following after running succesfully through this loop 28 million
times... the loop opens text files in a directory and inserts line by line
into a database...
*** caught segfault ***
address 0xc0000010, cause 'memory not mapped'
Traceback:
1: .getGeneric(f, where, package)
2: getGeneric("coerce", where = where)
3: as(obj, "integer")
4: