Skip to content
Prev 12364 / 398503 Next

too many arguments in foreign function call

On Mon, 16 Jul 2001, Warnes, Gregory R wrote:

            
Sorry, but I don't see that.  You want to write the wrapper in R?  Why is
it not as simple to write it in C?  I really don't see the need to remove
the limitation in R (or even to have it as high as 65) since R now has
.External() which allows an unlimited list of arguments to be passed to C
code.  I can't believe that the natural R representation is 85 separate
objects, so the natural way looks like a C wrapper translating between R
objects and Fortran pointers.  You can even copy selectively.

The argument is that new code should probably be using .Call (if S
compatibility is relevant) or .External rather than .C, at least provided
that a C wrapper is feasible.  Those interfaces seem very much under-used.
(Including by me, for S3-compatibility reasons.)