From dusa.adrian at gmail.com  Thu Jun 21 14:33:03 2012
From: dusa.adrian at gmail.com (=?UTF-8?B?QWRyaWFuIER1xZ9h?=)
Date: Thu, 21 Jun 2012 15:33:03 +0300
Subject: [Rd] debug R objects at C level
In-Reply-To: <4FE30D3B.8050208@gmail.com>
References: <CAJ=0CtCkj7G5XdNSK5cnOqusrRqeLC3PSMPPjcEbihRro2KYDQ@mail.gmail.com>
	<4FE30D3B.8050208@gmail.com>
Message-ID: <CAJ=0CtAYAj1WTME+NMD1XuFN3CNTkd9XcSuXeMF4fZvE2ytoZQ@mail.gmail.com>

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



[Rd] debug R objects at C level
=?UTF-8?B?QWRyaWFuIER1xZ9h?=