From sarahmanderni at gmail.com  Wed Feb 18 18:53:24 2015
From: sarahmanderni at gmail.com (sarah manderni)
Date: Wed, 18 Feb 2015 19:53:24 +0200
Subject: [Rd] Package functioning with R but not R-devel
In-Reply-To: <CADwqtCNXC-jz8V3-fCkLPwA=6ni7pNmqV4Xq62h19X6bhYBpcg@mail.gmail.com>
References: <CAHyAz7SZTBNK7M48hhBbyoqi7B5gA=5MB2oQ2BHi1heu2nKW+w@mail.gmail.com>
	<CADwqtCNXC-jz8V3-fCkLPwA=6ni7pNmqV4Xq62h19X6bhYBpcg@mail.gmail.com>
Message-ID: <CAHyAz7Q8Qh4wC_M4Pe0STxxxYbD6j4o3CYi-Xg27UUOZpwO+=g@mail.gmail.com>

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:

> 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:
>
>> 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.
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>
>
> --
> Gabriel Becker, PhD
> Computational Biologist
> Bioinformatics and Computational Biology
> Genentech, Inc.
>

	[[alternative HTML version deleted]]



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