Re: [Rd] R-devel does not update the C++ returned variables

2015-03-02 Thread sarah manderni
#x27; what(): std::bad_alloc Now that I am running the code using .Call. Thanks. On Mon, Mar 2, 2015 at 2:01 PM, Duncan Murdoch wrote: > On 02/03/2015 3:50 AM, sarah manderni wrote: > > Hi, > > > > Within my R code, I am using a C++ function as below: > > >

[Rd] R-devel does not update the C++ returned variables

2015-03-02 Thread sarah manderni
Hi, Within my R code, I am using a C++ function as below: overlaps <- matrix(0, nrow=B, ncol=length(N)) overlaps.P <- matrix(0, nrow=B, ncol=length(N)) .C("speedUp", D, S, pD, pS, nrow(D), as.integer(N), length(N), ssq[i], i, as.integer(B), overlaps, overlaps.P, DU

Re: [Rd] Package functioning with R but not R-devel

2015-02-18 Thread sarah manderni
at said, your code is "probably" doing something it shouldn't if things > have suddenly stopped working. > > Try running R devel under gdb if you want to try to figure it out, e.g. > (on linux, and possibly mac) /R -d gdb > > ~G > > On Wed, Feb 18, 2015 at 9:02 A

[Rd] Package functioning with R but not R-devel

2015-02-18 Thread sarah manderni
Hi, I am using an R package which includes C++ code inside. The package is functioning well under latest official R version but not under R-devel. I know that the C++ part is not functioning properly and I get an error using R-devel (it returns nothing to the R part of the program). Do I need to d