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.

Dirk

-- 
Three out of two people have difficulties with fractions.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to