Skip to content

[R-pkg-devel] MAX_ARGS limitation in foreign function calls

2 messages · Udaya B. Kogalur, Dirk Eddelbuettel

#
We are hitting the MAX_ARGS ceiling in our R-C function calls in the
development of randomForestSRC.  This limits to number of arguments to
65 using .Call().  Is there a work around for this dilemma?  Thank
you.

Udaya B. Kogalur

ubk at kogalur.com
Website:  www.kogalur.com
#
On 20 February 2018 at 09:33, Udaya B. Kogalur wrote:
| We are hitting the MAX_ARGS ceiling in our R-C function calls in the
| development of randomForestSRC.  This limits to number of arguments to
| 65 using .Call().  Is there a work around for this dilemma?  Thank
| you.

The easiest is to avoid the problem by using one or more of your SEXP objects
as lists and simply nest other arguments inside the list object.

Dirk