Displaying 20 results from an estimated 1300 matches similar to: "Alternative to .Internal(.dfltStop(msg, call))?"
2003 Nov 08
1
signalCondition
Does signalCondition() only work within try-catch blocks?
I expected:
testSignal <- function() {
error <- simpleError("An error!")
signalCondition(error)
}
to do the same thing as
testStop <- function() {
error <- simpleError("An error!")
stop(error)
}
but testSignal returns NULL without throwing an error. Have I
misunderstood something?
2011 Jan 27
0
Problems installing gputools
Hi,
I have some surprising trouble installing the gputools package.
This is a linux box running Fedora with an Nvidia GeForce GTX 260 card
and R 2.12.1
I had gputools running on it for the past several months. Wanting to
update to the newest version, I simply executed
install.packages("gputools") from within R. This should mean that the
problem isn't in the hardware or OS.
Errors
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?
2009 Apr 14
0
top level condition handlers
Hello,
I would like to establish top level condition handlers and restarts, so
that I don't explicit calls to withCallingHandlers and withRestarts in
many places:
For example :
> customError
function( message ){
err <- simpleError( message )
class( err ) <- c( "customError", class( err) )
err
}
> withCallingHandlers( { signalCondition(customError(
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
2018 Oct 04
0
segfault issue with parallel::mclapply and download.file() on Mac OS X
Thanks for the report, but unfortunately I cannot reproduce on my system
(either macOS nor Linux, from the command line) to debug. Did you run
this in the command line version of R?
I would not be surprised to see such a crash if executed from a
multi-threaded application, say from some GUI or frontend that runs
multiple threads, or from some other R session where a third party
library
2006 Jun 25
1
using withCallingHandlers, how to deal with warning( , immediate. = TRUE)?
Hello,
I want to use withCallingHandlers(expr, warning = function(w) { ....}),
that is, to use a custom warning handler. I want this handler to
replicate the behavior of the usual handler. I have problems with the
mode 'options(warn = 0)' where the warnings are delayed, except if
calling 'warning("message", immediate. = TRUE). Indeed, if my custom
warning handler
2018 Sep 20
0
segfault issue with parallel::mclapply and download.file() on Mac OS X
This code actually happens to work for me on macOS, but I think in
general you cannot rely on performing HTTP requests in fork clusters,
i.e. with mclapply().
Fork clusters create worker processes by forking the R process and
then _not_ executing another R binary. (Which is often convenient,
because the new processes will inherit the memory image of the parent
process.)
Fork without exec is not
2019 Apr 14
0
stopifnot
In current definition of function 'stopifnot' in stop.R in R 3.6.0 beta (https://svn.r-project.org/R/branches/R-3-6-branch/src/library/base/R/stop.R) or R devel (https://svn.r-project.org/R/trunk/src/library/base/R/stop.R), if 'exprs' is specified, cl[[1]] is quote(stopifnot) . To be more robust, quote(base::stopifnot) may be used instead.
Also, in current definition of function
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,
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)
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
2008 Oct 29
0
Package arm
I am having difficulty installing the arm package and would be
grateful if anyone could give some advice.
I have updated my computer to a Mac OS X version 10.5.5 ( processor: 2
x 2.8 GHz Quad-Core Intel Xeon) and I have downloaded R version 2.8.0
I have downloaded the package arm, but when i try to install it, the
following message is given in R:
Loading required package: MASS
Loading
2017 Apr 25
0
R_CMethodDef incompatibility (affects R_registerRoutines)
I recently noticed a change between R-3.3.3 and R-3.4.0 in the definition
of the R_CMethodDef struct.
typedef struct {
const char *name;
DL_FUNC fun;
int numArgs;
-
R_NativePrimitiveArgType *types;
- R_NativeArgStyle *styles;
-
} R_CMethodDef;
I suspect this is the reason that packages installed by R-3.4.0 and loaded
into R-3.3.3 will crash the
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
2007 Aug 27
0
Suggestion: Add simpleExit condition
Hi,
I would like to bring up and old suggestion
[http://tolstoy.newcastle.edu.au/R/devel/06/03/4512.html] of adding an
exit condition, so that for instance it is possible to silently exit
from scripts and Rd examples similar to return() for functions, e.g.
\examples{
require("foo") || exit("Example will not run without the 'foo' package.")
...
}
I know this can be
2009 Mar 27
0
consistent segfaults in ROracle with one of the databases
Dear list.
Has anybody had any issues with ROracle, namely consistently leading to
a segmentation fault? One of our oracle databases seems to have certain
issues at the moment (do not know what exactly though) and if that one
is queried ROracle definitely fails with a segmentation fault. Any
ideas? Here is the trace and below is also a type of query that crashes
it:
*** caught segfault ***
2007 Feb 19
2
"try"ing to understand condition handling
I'm confused by the page documenting tryCatch and friends.
I think it describes 3 separate mechanisms: tryCatch (in which control
returns to the invoking tryCatch), withCallHandlers (in which control
goes up to the calling handler/s but then continues from the point at
which signalCondition() was invoked), and withRestarts (I can't tell
where control ends up).
For tryCatch the docs say
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:
2004 Aug 06
0
Lost ogg sync using jspeex
Hi
I am getting lost ogg sync exception when I tried to decompress a speex stream. I am using the following program for both compressing as well as decompressing. I am just planning to test how jspeex works.
// File AudioCapture.java
import javax.sound.sampled.spi.*;
import javax.sound.sampled.*;
import org.xiph.speex.spi.*;
import java.util.*;
import java.net.*;
import java.io.*;
public