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      -3.215253146 -0.34691889 1.95971178
alpha1     -0.959180616  0.23331075 1.36234071
precision   0.004497286  0.01331408 0.03591402
ti.sim[1]  -0.396125995 -0.01187593 0.42906459
ti.sim[2]   0.718914696  1.16248377 1.60292763
ti.sim[3]   1.274667551  1.81147620 2.31006970
ti.sim[4]   2.572497955  3.07951333 3.53766774
ti.sim[5]   4.550502276  5.01269784 5.46088285
ti.sim[6]   5.255685252  5.80666975 6.25652586
ti.sim[7]   6.043583340  6.51910140 7.03374843
ti.sim[8]   7.540416334  7.96858368 8.35068142
ti.sim[9]   8.038643958  8.56281180 8.84347504
ti.sim[10]  8.351430973  8.79002259 9.31845855

Deviance information criterion:
-------------------------------
Mean deviance:  63.56 
penalty 2.873 
Penalized deviance: 66.43 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted