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.449286714 -0.514172619 1.75974146
alpha1     -0.876385104  0.215499056 1.33023490
precision   0.003361849  0.013462162 0.03989356
ti.sim[1]  -0.522426668 -0.006800843 0.52800392
ti.sim[2]   0.687860509  1.165881361 1.67276121
ti.sim[3]   1.350176956  1.800155587 2.29296242
ti.sim[4]   2.634370906  3.086347903 3.61290566
ti.sim[5]   4.425912487  5.025122498 5.46891233
ti.sim[6]   5.312264174  5.825241321 6.27733476
ti.sim[7]   5.933693218  6.473423571 6.99251827
ti.sim[8]   7.500203550  7.953013151 8.42593765
ti.sim[9]   8.157935941  8.536597287 8.91427288
ti.sim[10]  8.442203715  8.787930661 9.30436600

Deviance information criterion:
-------------------------------
Mean deviance:  63.76 
penalty 3.208 
Penalized deviance: 66.97 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted