Skip to content

Package functioning with R but not R-devel

3 messages · sarah manderni, Gabriel Becker

#
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 similar problem.
Thanks in advance.
#
Sarah,

We don't really have enough information to begin helping you with the
problem. We don't know what the c++ code is doing, which package you are
talking about, etc. See the posting guidelines.

That 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) <dir-for-Rdevel>/R -d gdb

~G

On Wed, Feb 18, 2015 at 9:02 AM, sarah manderni <sarahmanderni at gmail.com>
wrote:

  
    
#
The C++ code is used to increase the speed. It receives an empty matrix, in
a "for" loop it calculates the matrix elements and returns it to R. The
problem is, using the official R, it calculates the matrix correctly but
using R-devel, it returns the empty matrix with no errors and I get "error"
when the package tries to divide another matrix to this empty matrix (0/0).
I tried gdb, but it does not throw any errors it just does nothing. It is
the first time I am using R-devel and I was wondering if something is
different when building the package under R-devel or...

On Wed, Feb 18, 2015 at 7:32 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote: