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.460317477 -0.40833390 1.69898576
alpha1     -1.170413952  0.23350921 1.26940648
precision   0.002400852  0.01340299 0.04784502
ti.sim[1]  -0.417456134  0.01044054 0.52668345
ti.sim[2]   0.699047807  1.18998467 1.61877780
ti.sim[3]   1.358282119  1.78540193 2.26301704
ti.sim[4]   2.511424003  3.09188543 3.53301206
ti.sim[5]   4.630000904  5.02311396 5.48209687
ti.sim[6]   5.419217763  5.82057791 6.23475158
ti.sim[7]   6.071302582  6.48270943 6.96447610
ti.sim[8]   7.488861584  7.95538890 8.33611005
ti.sim[9]   8.106530609  8.52026808 8.85154169
ti.sim[10]  8.468722056  8.78843826 9.13660622

Deviance information criterion:
-------------------------------
Mean deviance:  63.54 
penalty 3.107 
Penalized deviance: 66.64 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted