Re: [R] calling a C function with a struct

2008-06-06 Thread Duncan Murdoch
John Nolan wrote: I am trying to call a precompiled C function that uses a struct as one of it's arguments. I could write a wrapper function in C, but I was hoping there is some way to pack fields into an array of type raw that could be passed directly to the function. Here is some more detail.

[R] calling a C function with a struct

2008-06-06 Thread John Nolan
I am trying to call a precompiled C function that uses a struct as one of it's arguments. I could write a wrapper function in C, but I was hoping there is some way to pack fields into an array of type raw that could be passed directly to the function. Here is some more detail. The C struct is s