Skip to content
Prev 28564 / 63468 Next

returning vectors of unknown size from C (with .C)

Ramon Diaz-Uriarte wrote:
.Call is usually easiest, but another possibility is to have two entry 
points:  one to calculate how much space you need, a second to pass in a 
vector that's the right size to hold the result.

Duncan Murdoch