Skip to content
Prev 336206 / 398513 Next

Capturing output of a C executable

On 14-02-03 5:44 PM, Phil Spector wrote:
Are you limiting this to the specific situation Dennis described, or 
making a more general claim?  The more general claim is clearly false.

Lots of packages return useful results using .C calls.  The idea is that 
all arguments to the C function are passed by reference and may be 
modified in place, so you just pass a vector to receive the result. 
That's equivalent to what you describe below, but I think it seems 
simpler, since "passing an address" from R sounds like an exotic 
operation, not the norm.

Duncan Murdoch

  If you want to bring