Hello
Thanks again for help!
We have attached version info, code, and contents of 00install.out at the end
of the message. The package can be found here:
http://sovo.md-hh.com/files/Foo.tar.gz
We had followed Dirks explanation in the Rcpp modules vignette and the
presentation of Rcpp
Hello,
Try having do_bar with this signature:
void do_bar(NumericVector data);
And my advice would probably also to have your C field either as a
NumericVector. NumericVector is just a thin wrapper around the internal
R data structure.
Having data members as direct pointers is dangerous
Sean,
just to clarify - this is not about something not working or any leaks.
cout/cerr do exactly what they are supposed to, it's just in most cases not
what you want. The main reason is that R does not necessarily use stdin/stdout
so cout/cerr may have nothing to do with the R console
Paul Gilbert wrote:
Is it possible in R to call a fortran routine that sets variables in a
common block and expect the values to persist when a call is made from R
to a second routine that uses the common block?
If not (as I suspect), is it possible to use a common block in a group of
Thanks, Simon,
That link may prove to be very useful. I think what I can do is make a
similar version of a buffer to one in that example and then have it
conditionally write to Rprintf or cout and/or REprintf or cerr,
depending on whether I'm running a c++ program from the command line
or