[Rd] Questions on extending Rcpp wrap and as with templates

2014-05-02 Thread Florian Burkart
Hi everyone, I have been trying to extend Rcpp with my own wrap and as templates. Two issues: 1) I need to explicitly call wrap. Is that expected? So for example I wrote this specialization: template<> SEXP Rcpp::wrap(std::vector const& entries) { std::vector sec_times; std::vector doubles; fo

[Rd] Error: C stack usage is too close to the limit

2014-03-28 Thread Florian Burkart
Hi, I have been using my own C++ plugin for a while. On a new machine I now keep getting the C stack usage is too close to the limit error. I played with it and it appears to come after I printed a fixed number of text to R via Rprintf (not from the main thread). Didn't happen on the old machi

Re: [Rd] Not stripping attachments in R-devel e-mails

2012-11-28 Thread Florian Burkart
If it is of interest, I am using the gmail web interface, and the problems seems to be that it sets the content type too correctly rather than incorrectly. In my original email, it had set the content type to "text/x-c++src". I just did a test with a .csv file, and it set the content type to "text

Re: [Rd] Problems with MinGW and boost on Windows

2012-11-27 Thread Florian Burkart
Sorry, didn't realize text attachments get stripped as well... here is a link: http://pastebin.com/T3XhsjDY, and for the archives the actual text #define WIN32_LEAN_AND_MEAN #define NOMINMAX 1 #define _WIN32_WINNT 0x0601 #define NTDDI_VERSION 0x0601 #define _MSC_VER_WINNT _MSC_VER_WINNT_WIN7

[Rd] Problems with MinGW and boost on Windows

2012-11-27 Thread Florian Burkart
Hi, I am not sure how widespread this problem is, but definitely occurs for me on 64 bit Win 7 with a 64 bit R. I think I have isolated the issue (to a certain extent) in the attached Test.cpp file. Basically, I think linking with boost serialization is causing the plugin to fail. If I compile T