21 Jun 2012 14:33
Re: debug R objects at C level
Adrian Duşa <dusa.adrian <at> gmail.com>
2012-06-21 12:33:03 GMT
2012-06-21 12:33:03 GMT
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
RSS Feed