Re: [Rcpp-devel] RNGScope, importing function, and if-else statement

2012-04-15 Thread Davor Cubranic
At Sun, 15 Apr 2012 19:01:30 +0100, Marie Auger-Methe wrote: > I want to use a random generator that is not available in the Rcpp: > rvm from R's CircStats package and I want the number generated to be > the same as the equivalent function in R. Importing the function > within a Rcpp inline functio

Re: [Rcpp-devel] RNGScope, importing function, and if-else statement

2012-04-15 Thread Dirk Eddelbuettel
Hi Marie, On 15 April 2012 at 19:01, Marie Auger-Methe wrote: | Hi, | | I want to use a random generator that is not available in the Rcpp: rvm | from R's CircStats package and I want the number generated to be the | same as the equivalent function in R. Importing the function within a | Rcpp

Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-15 Thread Dirk Eddelbuettel
Hi David, On 15 April 2012 at 11:20, Silkworth,David J. wrote: | While I really appreciated this exchange as informative in tutorial | sense, | I am still trying to figure out the cause of Marie's seg-fault. | | Holding Dirk's first fix up to the light with Marie's code all I really | see is rem

[Rcpp-devel] RNGScope, importing function, and if-else statement

2012-04-15 Thread Marie Auger-Methe
Hi, I want to use a random generator that is not available in the Rcpp: rvm from R's CircStats package and I want the number generated to be the same as the equivalent function in R. Importing the function within a Rcpp inline function works fine except if you have an if-else statement. The s

[Rcpp-devel] Irregular crash with rcpp and inline

2012-04-15 Thread Silkworth,David J.
While I really appreciated this exchange as informative in tutorial sense, I am still trying to figure out the cause of Marie's seg-fault. Holding Dirk's first fix up to the light with Marie's code all I really see is removal of the #include directive (which I assume, without looking, i