[Rd] debug R objects at C level

Adrian Duşa dusa.adrian at gmail.com
Thu Jun 21 14:33:03 CEST 2012


On Thu, Jun 21, 2012 at 3:02 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 12-06-21 7:38 AM, Adrian Duşa wrote:
>>[...]
>
> You seeing the value, not a pointer, but you are using an integer format to
> display a real.  You need the %f or related format.
>
> I would also recommend using Rprintf() rather than printf().  The latter
> will only work on some platforms, while Rprintf() should work everywhere.

Oh... so that was a printing issue... indeed very basic (starting to
learn C and slowly catching up with various data formats).
Thanks as well for the tip with Rprintf(), that also helps.

Best wishes,
Adrian

-- 
Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd.
050025 Bucharest sector 5
Romania
Tel.:+40 21 3126618 \
       +40 21 3120210 / int.101
Fax: +40 21 3158391



More information about the R-devel mailing list