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.805327708 -0.52339601 1.87874893
alpha1     -0.945178954  0.24545917 1.10355121
precision   0.003999652  0.01411744 0.03785162
ti.sim[1]  -0.490360683  0.01420893 0.50212381
ti.sim[2]   0.729409503  1.17925347 1.57722743
ti.sim[3]   1.389362393  1.79887983 2.31510986
ti.sim[4]   2.569749635  3.08281843 3.52516276
ti.sim[5]   4.525223470  5.00408412 5.49768762
ti.sim[6]   5.386799826  5.85156210 6.20834669
ti.sim[7]   6.067469829  6.50074444 6.96175217
ti.sim[8]   7.458574761  7.95714788 8.36951159
ti.sim[9]   8.184482017  8.50914158 8.92326065
ti.sim[10]  8.440806714  8.77785656 9.42688099

Deviance information criterion:
-------------------------------
Mean deviance:  63.44 
penalty 3.129 
Penalized deviance: 66.56 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted