Running examples in 'tuts-Ex.R' failed
The error most likely occurred in:

> ### Name: summary.tuts_ar1
> ### Title: Prints summary tables of tuts_ar1 objects
> ### Aliases: summary.tuts_ar1
> 
> ### ** Examples
> 
> # Note: Most of models included in tuts package are computationally intensive. In the example
> # below I set parameters to meet CRAN's testing requirement of maximum 5 sec per example.
> # A more practical example would contain N=50 in the first line of the code and n.sim=10000.
> 
> #1. Import or simulate the data (a simulation is chosen for illustrative purposes):
> DATA=simtuts(N=10,Harmonics=c(4,0,0), sin.ampl=c(10,0, 0), cos.ampl=c(0,0,0),
+             trend=0,y.sd=2, ti.sd=0.2)
> y=DATA$observed$y.obs
> ti.mu=DATA$observed$ti.obs.tnorm
> ti.sd= rep(0.2, length(ti.mu))
> 
> #2. Fit the model:
> n.sim=1000
> TUAR1=tuar1(y=y,ti.mu=ti.mu,ti.sd=ti.sd,n.sim=n.sim,CV=FALSE)
Compiling model graph
   Resolving undeclared variables
   Allocating nodes
Graph information:
   Observed stochastic nodes: 9
   Unobserved stochastic nodes: 13
   Total graph size: 107

Initializing model

> 
> #3. Generate summary results (optional parameters are listed in brackets):
> summary(TUAR1)                            # Summary results (CI, burn).

Estimates of parameters of interest and timing:
-----------------------------------------------
                   0.5%          50%      99.5%
const      -2.809069130 -0.484464067 1.73518140
alpha1     -1.026313346  0.221932758 1.43691140
precision   0.002527536  0.013242772 0.04361317
ti.sim[1]  -0.445827455 -0.005122886 0.39019274
ti.sim[2]   0.701068791  1.165110496 1.69720398
ti.sim[3]   1.364284052  1.827957596 2.36955258
ti.sim[4]   2.538112809  3.078410997 3.58039451
ti.sim[5]   4.527769620  5.011740658 5.41003106
ti.sim[6]   5.407105635  5.812408492 6.24980532
ti.sim[7]   6.009462857  6.478387850 6.88338782
ti.sim[8]   7.445975175  7.931115580 8.30085866
ti.sim[9]   8.175671656  8.504773663 8.87213617
ti.sim[10]  8.420173219  8.796799403 9.20921558

Deviance information criterion:
-------------------------------
Mean deviance:  63.73 
penalty 3.159 
Penalized deviance: 66.89 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted