Re: [Rcpp-devel] Thread handling

2011-04-26 Thread Dirk Eddelbuettel
On 26 April 2011 at 21:41, Steve Lianoglou wrote: | We kind of lost context of the original post, but: Did we? | On Tue, Apr 26, 2011 at 8:19 PM, Christian Gunning wrote: | Just to clarify the original intent -- the impression I got from the | OP is that he actually wanted to fire off a thread

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread Dirk Eddelbuettel
On 26 April 2011 at 20:53, Whit Armstrong wrote: | I could probably show you the Gelman - Radon example in my MCMC framework. | | Might be able to do a speed comparison w/ JAGS, but not sure if there | is sufficient time left for me to send and you to integrate the | example. | | Let me know wha

Re: [Rcpp-devel] Thread handling

2011-04-26 Thread Steve Lianoglou
Hi, We kind of lost context of the original post, but: On Tue, Apr 26, 2011 at 8:19 PM, Christian Gunning wrote: >> As is, I?m able to return an argument such as a >> SEXP value from my function, and I can have it give feedback. However, if I >> do that before the thread finishes, I don?t know i

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread Whit Armstrong
I could probably show you the Gelman - Radon example in my MCMC framework. Might be able to do a speed comparison w/ JAGS, but not sure if there is sufficient time left for me to send and you to integrate the example. Let me know what you think. -Whit On Tue, Apr 26, 2011 at 6:56 PM, Dirk Edde

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread Dirk Eddelbuettel
On 27 April 2011 at 11:17, baptiste auguie wrote: | OK, sorry I've just come back from a Easter trip; it'll be too late | for your original request but I'll tidy up some examples and post back | when they're ready. Cool, thanks. | By the way, have you considered setting up a sort of wiki so that

[Rcpp-devel] Thread handling

2011-04-26 Thread Christian Gunning
> As is, I?m able to return an argument such as a > SEXP value from my function, and I can have it give feedback. However, if I > do that before the thread finishes, I don?t know if there is a way to access > it any more after the thread finishes. Likewise, if I were to wait until the > thread fini

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread baptiste auguie
On 27 April 2011 10:56, Dirk Eddelbuettel wrote: > > On 27 April 2011 at 10:29, baptiste auguie wrote: > | Would RcppArmadillo be OK? I have a couple of functions / packages > | using it with basic complex linear algebra calculations, together with > | the original, slower R implementation. > > Th

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread Dirk Eddelbuettel
On 27 April 2011 at 10:29, baptiste auguie wrote: | Would RcppArmadillo be OK? I have a couple of functions / packages | using it with basic complex linear algebra calculations, together with | the original, slower R implementation. That would be perfect, yes. Mind you it is getting late as the c

Re: [Rcpp-devel] Favourite Rcpp examples?

2011-04-26 Thread baptiste auguie
Hi, Would RcppArmadillo be OK? I have a couple of functions / packages using it with basic complex linear algebra calculations, together with the original, slower R implementation. Cheers, baptiste On 22 April 2011 04:15, Dirk Eddelbuettel wrote: > > Finishing up slides for next week's one-d

Re: [Rcpp-devel] RInside makefile on Windows

2011-04-26 Thread Nathan Johnson
Hi Dirk, I'm using the MinGW toolchain as specified on the website to compile. It works well to build the examples from an Msys shell. I'll play around with Netbeans and let you know if I figure it out. Cheers. Nate -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org]

Re: [Rcpp-devel] Thread handling

2011-04-26 Thread Dirk Eddelbuettel
On 26 April 2011 at 14:46, Sean Robert McGuffee wrote: | Hi, | I?ve finally got a working start to using Rcpp to interface with some of my c++ | code, and now I have a practical question about the interface. My first task | was simply to launch algorithms from R, and thanks to a lot of help from

Re: [Rcpp-devel] RInside makefile on Windows

2011-04-26 Thread Dirk Eddelbuettel
Nate, On 26 April 2011 at 11:36, Nathan Johnson wrote: | Hi Dirk, | | I re-installed the Rcpp and RInside directories to R_HOME/library/ . That | did the trick. Building on NetBeans is no problem. | | Next issue occurs when running the code. I get the following message in the | output window

[Rcpp-devel] Thread handling

2011-04-26 Thread Sean Robert McGuffee
Hi, I¹ve finally got a working start to using Rcpp to interface with some of my c++ code, and now I have a practical question about the interface. My first task was simply to launch algorithms from R, and thanks to a lot of help from this community, I finally got that task solved. Now, however, I

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-26 Thread Bernhard Pollner
Hi Dirk, > in the end the > | (very simple!! :-)) ) working version of Makevars.win is like that: > > | PKG_LIBS = Plastic.lib $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e > "Rcpp:::LdFlags()") > > Perfect!! No transformation needed for Plastic.lib, ie no export table > business and

Re: [Rcpp-devel] RInside makefile on Windows

2011-04-26 Thread Nathan Johnson
Hi Dirk, I re-installed the Rcpp and RInside directories to R_HOME/library/ . That did the trick. Building on NetBeans is no problem. Next issue occurs when running the code. I get the following message in the output window "make: Nothing to be done for 'all'.". This is followed by a message bo

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-26 Thread Dirk Eddelbuettel
Hi Bernhard, On 26 April 2011 at 17:55, Bernhard Pollner wrote: | Am 25.04.2011 um 04:54 schrieb Dirk Eddelbuettel: | You need to include headers for R too, e.g. | | #include | #include | | and maybe | | #include | | That worked, everything runs smoothly then. :-) Y

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-26 Thread Bernhard Pollner
Hi Dirk, Am 25.04.2011 um 04:54 schrieb Dirk Eddelbuettel: > > You need to include headers for R too, e.g. > > #include > #include > > and maybe > > #include That worked, everything runs smoothly then. :-) > > | now what would be the line I would have to add to Makevars.win,

[Rcpp-devel] [ANN] RInside 0.2.4

2011-04-26 Thread Dirk Eddelbuettel
We put RInside 0.2.4 onto CRAN yesterday. It contains some improvements to the initialization code (with a tip of the hat to Karl and Murray), a number of cleanups and simplifications in the examples making better use of Rcpp idioms, two new 'standard' examples as well as the (pretty, if I dare sa