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.785945581 -0.473738775 1.79740678
alpha1     -0.896831386  0.179863291 1.20990048
precision   0.003700147  0.012998186 0.03462688
ti.sim[1]  -0.479664521  0.002597349 0.47784572
ti.sim[2]   0.659467147  1.180478601 1.74002808
ti.sim[3]   1.370323965  1.803008150 2.26080298
ti.sim[4]   2.559050142  3.080932831 3.54815672
ti.sim[5]   4.573249874  5.026440792 5.46417099
ti.sim[6]   5.247754777  5.815552160 6.22796893
ti.sim[7]   6.064898706  6.485751884 7.01172379
ti.sim[8]   7.430162063  7.954965355 8.40404044
ti.sim[9]   8.201248227  8.530184569 8.88335652
ti.sim[10]  8.368930759  8.775245784 9.24641795

Deviance information criterion:
-------------------------------
Mean deviance:  63.68 
penalty 3.01 
Penalized deviance: 66.69 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted