[R] Sklyar's inline package: how to return a list?

Dirk Eddelbuettel edd at debian.org
Fri Oct 5 18:38:19 CEST 2007

On 5 October 2007 at 10:48, Feng, Ken  wrote:
| Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package.  
| The question I have is, how do I return multiple values, say in a list?
| Inside the C code, I've also calculated 'sum'.  How do I return this along with 'res'?

Please go and read the fine 'R Extensions' manual, and then go and study any
number of the hundreds of examples in existing CRAN packages.  Inline makes
it easier to 'glue' your C/C++ code to R, it doesn't write it for you. Yet.


Three out of two people have difficulties with fractions.

More information about the R-help mailing list