[R] problem with the assignment function

dhinds@sonic.net dhinds at sonic.net
Sat Nov 5 08:04:05 CET 2005


Wang, Yan <ywang at fhcrc.org> wrote:

> I run into the most weird problem I have ever met. I wrote a function
> "rhopair", which calls a .C function. I cannot assign its value to a
> variable using either "=" nor "<-". After I did the assignment,
> "rhopair" cannot reproduce the same result as before with the same
> argument. Here is the code and results:

...

> Any hint or suggestions will be much appreciated.

Some sort of memory allocation bug in the C code?  Use of unprotected
SEXP objects, maybe?

-- Dave




More information about the R-help mailing list