Re: [Rcpp-devel] Array into C++ with cppFunction

2014-02-11 Thread Dirk Eddelbuettel
(Resending, this time with CC to list. Sorry for the extra first post. --Dirk) On 11 February 2014 at 11:49, Nick Menzies wrote: | Is there a way to pass an array into c++ when using cppFunction?  I realize | arrays have been discussed a number of times, but the solutions I have found | (e.g. htt

Re: [Rcpp-devel] Segmentation Fault Running RInside Examples

2014-02-11 Thread Dirk Eddelbuettel
On 11 February 2014 at 21:13, Paul Wiedeking wrote: | I am trying to run the rinside_sample0. I use the provided Makefile to | build it | and that works fine. But when i try to run the example it crashes with a | segmentation fault. Known issue, reported here last week, and thanks to Kevin alre

[Rcpp-devel] Segmentation Fault Running RInside Examples

2014-02-11 Thread Paul Wiedeking
Dear Sir or Madam, I am trying to run the rinside_sample0. I use the provided Makefile to build it and that works fine. But when i try to run the example it crashes with a segmentation fault. My configuration is: - Ubuntu 13.04 - R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" - Rcpp versio

[Rcpp-devel] Array into C++ with cppFunction

2014-02-11 Thread Nick Menzies
Hi guys, Is there a way to pass an array into c++ when using cppFunction? I realize arrays have been discussed a number of times, but the solutions I have found (e.g. http://markovjumps.blogspot.com/2011/12/r-array-to-rcpparmadillo-cube.html, or https://www.mail-archive.com/rcpp-devel@lists.r-for

Re: [Rcpp-devel] Segfault, is it because of iterators/pointers?

2014-02-11 Thread Dirk Eddelbuettel
In essence: "Yes" On 11 February 2014 at 15:18, Alessandro Mammana wrote: | Hi all, | I got another segfault using Rcpp. It is very difficult to understand | where it happens and to reduce it to a minimal example, so for now I | am not posting very precise code here, but I have a suspicion, maybe

[Rcpp-devel] Segfault, is it because of iterators/pointers?

2014-02-11 Thread Alessandro Mammana
Hi all, I got another segfault using Rcpp. It is very difficult to understand where it happens and to reduce it to a minimal example, so for now I am not posting very precise code here, but I have a suspicion, maybe you could help me saying if my suspect is right. I am doing something similar: in

[Rcpp-devel] rolling adf test

2014-02-11 Thread Hideyoshi Maeda
Dear Rcpp-devel list, I am looking to carry out a fixed window length rolling ADF test (with no intercept), over some time series data currently in xts format. To do this I need to first fit a regression to the data, then use the residuals as an input into the ADF test, from which I can get a p