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.159358576 -0.531475867 1.7916536
alpha1     -0.817384683  0.149613336 1.2267655
precision   0.002511173  0.012960640 0.0454997
ti.sim[1]  -0.557065060  0.007082177 0.5816016
ti.sim[2]   0.673088215  1.187167374 1.6466974
ti.sim[3]   1.264890372  1.809158465 2.2967284
ti.sim[4]   2.599743589  3.083884320 3.5119008
ti.sim[5]   4.570477613  4.990232392 5.5260257
ti.sim[6]   5.312511125  5.803974268 6.2163765
ti.sim[7]   6.005443691  6.492206220 6.9484835
ti.sim[8]   7.420113108  7.951658521 8.4112619
ti.sim[9]   8.066411979  8.521958708 8.9153776
ti.sim[10]  8.380834642  8.790791985 9.1222690

Deviance information criterion:
-------------------------------
Mean deviance:  63.47 
penalty 2.665 
Penalized deviance: 66.14 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted