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

2011-10-01 Thread Whit Armstrong
Thanks, Dirk. Shige, this is still alpha software. Don't expect it to be perfect. As you encounter bugs, please let me know. -Whit On Sat, Oct 1, 2011 at 5:54 PM, Dirk Eddelbuettel wrote: > > On 1 October 2011 at 17:16, Whit Armstrong wrote: > | Please have a look here. > | > | It's a simple

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

2011-10-01 Thread Shige Song
Very nice, thanks. Shige On Sat, Oct 1, 2011 at 5:16 PM, Whit Armstrong wrote: > Please have a look here. > > It's a simple linear model using inline and cppbugs: > https://github.com/armstrtw/CppBugs/tree/master/test/r.inline.example > > -Whit > > > On Sat, Oct 1, 2011 at 3:29 PM, Dirk Eddelbue

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

2011-10-01 Thread Dirk Eddelbuettel
On 1 October 2011 at 17:16, Whit Armstrong wrote: | Please have a look here. | | It's a simple linear model using inline and cppbugs: | https://github.com/armstrtw/CppBugs/tree/master/test/r.inline.example Just did 'git pull', and that is indeed a very nice clean up of the existing example. D

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

2011-10-01 Thread Whit Armstrong
Please have a look here. It's a simple linear model using inline and cppbugs: https://github.com/armstrtw/CppBugs/tree/master/test/r.inline.example -Whit On Sat, Oct 1, 2011 at 3:29 PM, Dirk Eddelbuettel wrote: > > On 1 October 2011 at 15:03, Shige Song wrote: > | Any examples showing how CppB

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

2011-10-01 Thread Dirk Eddelbuettel
On 1 October 2011 at 15:03, Shige Song wrote: | Any examples showing how CppBugs and Rcpp work together will be good. | I am particularly interested in knowing how GLM models and GLMM models | can be estimated that way. | | Thanks in advance. Well, maybe you should really try these two things:

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

2011-10-01 Thread Shige Song
Any examples showing how CppBugs and Rcpp work together will be good. I am particularly interested in knowing how GLM models and GLMM models can be estimated that way. Thanks in advance. Best, Shige On Sat, Oct 1, 2011 at 1:52 PM, Whit Armstrong wrote: > I'm happy to provide more examples of cp

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

2011-10-01 Thread Whit Armstrong
I'm happy to provide more examples of cppbugs with inline and Rcpp. Is there something in particular you had in mind? -Whit On Sat, Oct 1, 2011 at 7:05 AM, Shige Song wrote: > Dear Whit, > > I have been playing with other examples you provided in the github > repository. The one Dirt sent, how

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

2011-10-01 Thread Shige Song
Dear Whit, I have been playing with other examples you provided in the github repository. The one Dirt sent, however, is the only example that I can find from the internet showing how CppBugs works with Rcpp (and R). As I see it, such a combination has great potential providing a flexible yet powe

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] 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