Displaying 4 results from an estimated 4 matches for "sarahmanderni".
2015 Feb 18
2
Package functioning with R but not R-devel
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
debug the C++ code separately for R-devel? Would be grateful if you could
suggest any links with
2015 Feb 18
0
Package functioning with R but not R-devel
...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) <dir-for-Rdevel>/R -d gdb
~G
On Wed, Feb 18, 2015 at 9:02 AM, sarah manderni <sarahmanderni at gmail.com>
wrote:
> 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...
2015 Mar 02
2
R-devel does not update the C++ returned variables
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, DUP=FALSE)
the function "speedUp", is supposed to update matrices overlaps
2015 Mar 02
2
R-devel does not update the C++ returned variables
Thanks! I went through the online posts which supports the power of .Call
over .C. But my probably naive question is why does this work for my code
with R but not R-devel?
And another question is related to using .Call. Based on the manual page, I
do not need to change the function parameters when using .Call. So I can
run like this:
.Call("sppedUp", D, S, pD, pS, nrow(D), as.integer(N),