[R] interfacing with .Call

R. Michael Weylandt michael.weylandt at gmail.com
Sun Dec 16 19:32:56 CET 2012


On Sun, Dec 16, 2012 at 6:20 PM, Shangru Li <lishangru at gmail.com> wrote:
> Hi
> The function "Projector" works well and actually the interface with .C
> works OK.
> The question is that I can compile it in R, but ".Call" returns different
> result each time with same inputs. Could anybody tell me why? Thanks!
>

I haven't read through your code but .C and .Call are actually pretty
different -- is there any reason you'd expect code written for one
interface to work for the other? You might just be seeing random bits
of memory returned by .Call

MW




More information about the R-help mailing list