Displaying 20 results from an estimated 90 matches similar to: "Need help debugging R."
1999 Sep 17
1
lambda error update
Two more details:
Someone else who works here, and hasn't used 0.65.0, thinks he's seen the
error before. He restarted R, and it went away.
Second, I think the relevant code is in
SEXP do_function, in eval.c in the main directory.
line 695: WrongArgCount("lambda")
Beyond that I'm afraid I'm getting in over my head.
Matt
2017 Jul 14
0
[PATCH 02/27] daemon: Allow parts of the daemon and APIs to be written in OCaml.
This change allows parts of the daemon to be written in the OCaml
programming language. I am using the ‘Main Program in C’ method along
with ‘-output-obj’ to create an object file from the OCaml code /
runtime, as described here:
https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html
Furthermore, change the generator to allow individual APIs to be
implemented in OCaml. This is picked by
2007 May 29
1
Use of Rf_duplicate
First, thanks to those of you who responded to my previous post about my
code that was taking longer and longer to process. After following your
suggestions, and I now thinking that the problem was some calls to
Rf_duplicate in my C code.
So I'm hoping I could get some clarification on what Rf_duplicate actually
does. What is the real difference between
PROTECT(y=x); and
PROTECT (y =
2017 Jul 21
0
[PATCH v2 01/23] daemon: Allow parts of the daemon and APIs to be written in OCaml.
This change allows parts of the daemon to be written in the OCaml
programming language. I am using the ‘Main Program in C’ method along
with ‘-output-obj’ to create an object file from the OCaml code /
runtime, as described here:
https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html
Furthermore, change the generator to allow individual APIs to be
implemented in OCaml. This is picked by
2007 Jun 21
2
segfault during cbind
The following code results in a seg fault.
> sessionInfo()
R version 2.6.0 Under development (unstable) (2007-06-21 r42013)
x86_64-unknown-linux-gnu
locale:
LC_CTYPE=en_US;LC_NUMERIC=C;LC_TIME=en_US;LC_COLLATE=en_US;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics
2000 Dec 18
1
1.2.0 segfault
I'm a novice with gdb but the following is the result of a segfault problem I've been
having with 1.2.0. If there is something else I should do to get more useful
information at this point, then someone please let me know.
Paul Gilbert
______
[5] /home/mfa5/gilp/zzot : R -d gdb
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
2004 Sep 13
6
Spare some CPU cycles for testing lme?
If anyone has a few extra CPU cycles to spare,
I'd appreciate it if you could verify a problem that I
have encountered. Run the code
below and tell me if it crashes your R before
completion.
library(lme4)
data(bdf)
dump<-sapply( 1:50000, function(i) {
fm <- lme(langPOST ~ IQ.ver.cen + avg.IQ.ver.cen, data = bdf,
random = ~ IQ.ver.cen | schoolNR);
cat("
2010 Mar 11
1
Shrinking a List
Hello,
I create a VECSXP(call it A) with size N(~ 5000), i then proceed to
fill the elements and find out I don't need to fill more than
M (M<< N).
Thus if i return A to the user's R code, he/she will see a list of
length 5K of which N-M are NULLs.
To avoid this, I create a new VECSXP B of length M and /duplicate/ the
elements of A.
Since I do this often, it appears to be wasteful,
2007 May 22
2
inline C/C++ in R: question and suggestion
This is a question and maybe an announcement.
We've been discussing in the group that it would be nice to have a
mechanism for something like "inline" C/C++ function calls in R. I do
not want to reinvent the wheel, therefore, if something like that
already exists, please give me a hint -- I could not find anything. If
not, here is a working solution, please criticise so I could
2004 Jan 09
2
debugging strange segfault
Dear R-devel,
Can anyone give me some hints on how to go about debugging a strange
segfault in my randomForest package? Here's the scoop:
A user reported segfault when running predict() in the randomForest package.
I asked for the data and code. The combination runs fine under WinXPPro,
but does give segfault on one of our Linux boxes running R (1.7.0 through
R-devel_2004-01-08) on
2008 Feb 12
4
assigning NULLs to elements of a list
Dear developers:
I have just came across an (unexpected to me) behaviour of lists when
assigning NULLs to list elements. I understand that a NULL is a valid R
object, thus assigning a NULL to a list element should yield exactly the
same result as assigning any other object. So I was surprised when
assigning a NULL in fact removed the element from the list. Is this an
intended behaviour? If
2001 Jul 02
0
ReleaseLargeFreeVectors SIGSEGV (?) (PR#1008)
Full_Name: Roger Bivand
Version: 1.3.0
OS: GNU/Linux RH6.2, 7.0, Debian 2.2
Submission from: (NULL) (158.37.100.64)
I'm working on interfacing ANN: A Library for Approximate Nearest Neighbor
Searching (http://www.cs.umd.edu/~mount/ANN/) to R, following up a prototype
package I tried in May 2000. ANN is written in C++; my C++ is very weak. Last
year
I didn't experience any problems with
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
Hello,
is there any one who uses C++ STL classes when programming shared libs
for R and has had any problems with STL?
In the very simple example below I am constantly getting segfaults when
trying to populate the queue. The segfault occurs at what looks like a
random index in the loop when pushing another element to the queue.
Reproduced on 4 machines. Object x is an Image as in EBImage,
2019 Nov 04
2
Questions on the R C API
Hi All,
I have some questions regarding the R C API.
Let's assume I have a function which is defined as follows:
R file:
myfunc <- function(a, b, ...) .External(Cfun, a, b, ...)
C file:
SEXP Cfun(SEXP args) {
args = CDR(args);
SEXP a = CAR(args); args = CDR(args);
SEXP b = CAR(args); args = CDR(args);
/* continue to do something with remaining arguments in "..."
2007 Oct 05
1
Sklyar's inline package: how to return a list?
Hi,
Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package.
The question I have is, how do I return multiple values, say in a list?
Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'?
Ultimately, I want to return multiple matrix results. Thanks in advance for any code snipplets/advice!
Regards,
Ken
#
2013 Jul 14
1
unmapped memory core dump with pure R program?
dear R developers---I am running a pure R program on the stock binary
debian (ubuntu) 64-bit linux distribution, 3.0.1. for identification,
20abb3a1d917bce52a10dd40cb47b82b /usr/lib/R/bin/exec/R
58ebc91f143f752610c8dbe22182f3f3 /usr/lib/libR.so
my R program loads 5 big matrices (about 1GB each)and rbind's them, all on
a 16GB machine. alas, in one particular run, I am getting a
2002 Jan 02
1
Building R-1.4 on Tru64
Hello everyone,
I've just attempted to build R-1.4 on Compaq Tru64 (I'll enclose the
text from bug.report() from R-1.3.1 at the end.) The relevant part of
the log is below.
Any ideas?
gcc -shared -o methods.so do_substitute_direct.o
methods_list_dispatch.o method_meta_data.o slot.o -L/usr/local/lib
/usr/ucb/ld:
Warning: Unresolved:
TYPEOF
Rf_error
Rf_protect
Rf_substitute
2019 Nov 04
0
Questions on the R C API
Hi Morgan,
My solutions might not be the best one(I believe it's not), but it should
work for your question.
1. Have you considered Rf_duplicate function? If you want to change the
value of `a` and reset it later, you have to have a duplication somewhere
for resetting it. Instead of changing the value of `a` directly, why not
changing the value of a duplicated `a`? So you do not have to
2003 Sep 07
3
bug in crossprod? (PR#4092)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
# The last line of following code produces a segmentation fault:
x <- 1:10
f <- gl(5,2)
2009 Mar 27
0
imporving performance of slicing on matrices and S4 their derivatives
Dear list.
It is a known issue that accessing slots of S4 objects and in particular
accessing .Data slots is slow in R. However, what surprises me are two
things demonstrated in the code below (runnable with 'inline', my times
are in the comments):
- copying data out of a large 3x1e7 .Data slot into a matrix can be
easily made 3-4 times faster than accessing a .Data slot which I believe