Re: [Rcpp-devel] RNGScope

2012-08-14 Thread Dirk Eddelbuettel
Hi Rodney, On 14 August 2012 at 09:17, Rodney Sparapani wrote: | This is my first post so please be gentle ;o) I have been through Welcome -- the list is generally very nice and helpful. | all of the docs that I can find (but I haven't looked at the source | code directly). Here is the behav

Re: [Rcpp-devel] RNGScope

2012-08-14 Thread Rodney Sparapani
On 08/14/2012 09:38 AM, Douglas Bates wrote: I think you want to move the RNGScope declaration before the calls to rcauchy and runif. That's it! Thank you Doug. -- Rodney Sparapani, PhD Center for Patient Care and Outcomes Research Sr. Biostatistician http://www.mcw.edu/pcor 4

Re: [Rcpp-devel] RNGScope

2012-08-14 Thread Douglas Bates
I think you want to move the RNGScope declaration before the calls to rcauchy and runif. On Tue, Aug 14, 2012 at 9:17 AM, Rodney Sparapani wrote: > This is my first post so please be gentle ;o) I have been through > all of the docs that I can find (but I haven't looked at the source > code direc

[Rcpp-devel] RNGScope

2012-08-14 Thread Rodney Sparapani
This is my first post so please be gentle ;o) I have been through all of the docs that I can find (but I haven't looked at the source code directly). Here is the behavior that I see: > require(inline) Loading required package: inline > source("helper.R") > source("corrMH.R") > > set.seed(66) >