Re: [Rcpp-devel] Another 'Error: not compatible with requested type'

2015-08-07 Thread Fabio Tordini
declared in GlobalEnv in general, but I might be wrong. Also, it wasn't a problem until early this morning! Regards, Fabio On 08/07/2015 02:19 PM, Dirk Eddelbuettel wrote: On 7 August 2015 at 13:40, Fabio Tordini wrote: | Hello, | I already read the discussion about the issue in object

[Rcpp-devel] Another 'Error: not compatible with requested type'

2015-08-07 Thread Fabio Tordini
Hello, I already read the discussion about the issue in object, but I can't find a way out! That problem came out all of a sudden, in a function that has always worked and has not been modified so far. I describe the problem here. if more code might help, I'll provide it. I have an R funct

Re: [Rcpp-devel] rsession memory consumption blows up

2015-06-24 Thread Fabio Tordini
work more incrementally and releasing memory as needed. Or the simple alternative solution is to free everything but the objects to be returned in the function itself. Best, -- Hao Ye h...@ucsd.edu On Jun 23, 2015, at 9:57 AM, Dirk Eddelbuettel wrote: On 23 June 2015 at 18:45, Fabio Tordini wrote:

[Rcpp-devel] rsession memory consumption blows up

2015-06-23 Thread Fabio Tordini
Hello, I encountered this problem while working on my Rcpp package. I don't know if it can be related to Rcpp, but I post it here looking for some advices. I'll try to make myself as clear as possible: from an R function in my Rcpp package I call a C++ function where huge datasets (~ 2GB) ar

Re: [Rcpp-devel] error: wrap is not a template function

2015-05-22 Thread Fabio Tordini
Solved! Apparently, declaration and definition of 'as' and 'wraps' were correct - that explains why it worked as expected in a sample implementation. The problem was likely related to the order in which (and ) were included (as Kevin suggested). Following the 'sandboxed_server' example ava

Re: [Rcpp-devel] error: wrap is not a template function

2015-05-21 Thread Fabio Tordini
as' and 'wrap'. Also, this solution works as expected in a GSL-free context. Am I doing something wrong here? Fabio On 05/21/2015 05:41 PM, Dirk Eddelbuettel wrote: On 21 May 2015 at 17:17, Fabio Tordini wrote: | while extending Rcpp with my C++ classes, I received hund

[Rcpp-devel] error: wrap is not a template function

2015-05-21 Thread Fabio Tordini
Hello, while extending Rcpp with my C++ classes, I received hundreds of " 'wrap' is not a template function" and " 'as' is not a template function" errors when compiling. Beside this, I get an impressive list of errors referring to RcppGSL files. The library from which my classes come from m

Re: [Rcpp-devel] loading failed

2015-05-05 Thread Fabio Tordini
It works! I used the configure.ac script to re-generate proper Makevars. The tricky point is that I had to manually add directives to object files and hide the config script, otherwise the Makevars file gets rewritten when rebuilding. I feel like there must be some more elegant way to do it..

Re: [Rcpp-devel] loading failed

2015-05-05 Thread Fabio Tordini
ee what RcppGSL does itself in its configure scripts: https://github.com/eddelbuettel/rcppgsl/blob/2849b8dd777c8057e524c2141dfeaa8e28840350/inst/skeleton/configure.win. Kevin On Tue, May 5, 2015 at 2:08 PM, Fabio Tordini mailto:tord...@di.unito.it>> wrote: Ok, I found the 'sc

Re: [Rcpp-devel] loading failed

2015-05-05 Thread Fabio Tordini
#x27;re not called directly from R. still, I get the loading failed error. Fabio On 05/05/2015 10:15 PM, Dirk Eddelbuettel wrote: On 5 May 2015 at 16:28, Fabio Tordini wrote: | Here is the actual (simple) code: | | Finder *f = new Finder(); | f->parseFiles(str_g, str_f, s

Re: [Rcpp-devel] loading failed

2015-05-05 Thread Fabio Tordini
Hi Dirk, thanks for your reply! On 05/05/2015 04:14 PM, Dirk Eddelbuettel wrote: On 5 May 2015 at 14:30, Fabio Tordini wrote: | Everything compiles fine, but then it fails when loading the package: | | ** testing if installed package can be loaded | Error in dyn.load(file, DLLpath = DLLpath

[Rcpp-devel] loading failed

2015-05-05 Thread Fabio Tordini
Hi all, I have a C++ application I developed, with its headers (.hpp) and related .cpp files. Within this project I use a templated header-only library for efficient parallel computing using pthreads, as well as the GSL library. My intent is to use this application within a R package, and I use