Re: [Rd] debug R objects at C level

From: Adrian Duşa <dusa.adrian_at_gmail.com>
Date: Thu, 21 Jun 2012 15:33:03 +0300

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 21 Jun 2012 - 12:36:32 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2012 - 13:20:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive