Re: [Rcpp-devel] Help with an Rcpp and CppBugs example

2011-09-30 Thread Dirk Eddelbuettel
Hi Whit, Thanks for chiming in. On 30 September 2011 at 22:06, Whit Armstrong wrote: | Shige, | | That example is quite dated at this point. The CppBugs api has | changed a lot since then and is likely to change more in the near | future. | | Please git pull the latest from github, and ping m

Re: [Rcpp-devel] Help with an Rcpp and CppBugs example

2011-09-30 Thread Whit Armstrong
Shige, That example is quite dated at this point. The CppBugs api has changed a lot since then and is likely to change more in the near future. Please git pull the latest from github, and ping me if you have any issues. There are also quite a few pure c++ examples the the 'test' dir to get you

Re: [Rcpp-devel] Help with an Rcpp and CppBugs example

2011-09-30 Thread Shige Song
Dear Dirk, Thank you very much for the suggestions and the upated file. Your file actually works flawlessly on my system. It looks really interesting and educational. Thanks also for the great work on Rcpp, really amazing piece of software you got there. Best, Shige On Fri, Sep 30, 2011 at 9:11

Re: [Rcpp-devel] Help with an Rcpp and CppBugs example

2011-09-30 Thread Dirk Eddelbuettel
Shige, There is no way to sugarcoat this: you have to learn to live with, and learn from, the compiler errors and relate them to the actual code. Using Rcpp still means programming in the context of a C++ compiler. You also need Whit's CppBugs repo from github _installed somewhere_ so that

[Rcpp-devel] [ANN] Rcpp 0.9.7

2011-09-30 Thread Dirk Eddelbuettel
Rcpp 0.9.7 went to CRAN this morning, below is the usual blog post in case you haven't seen it. The actual URL is http://dirk.eddelbuettel.com/blog/2011/09/30#rcpp_0.9.7 which has the hyper-references if you want to follow those. Special thanks goes to Martyn Plummer whose heroic efforts in

[Rcpp-devel] Help with an Rcpp and CppBugs example

2011-09-30 Thread Shige Song
Dear All, I am trying to run the example posted by Whit armstrong: http://www.mail-archive.com/rcpp-devel@lists.r-forge.r-project.org/msg00825.html I got the following error messages: > fun <- cxxfunction(signature(XR="numeric", yr="num