Skip to content
Prev 26747 / 63424 Next

Returning vectors of two different data types back to R environment (from C).

Charles Danko wrote:
How does any R function return two different-typed values back to its 
caller? With a list - like list(foo=1,bar='baz'). Construct an R list in 
your C code and return that... R Extensions should tell you how!

Barry