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.464051397 -0.426787526 2.61454913
alpha1     -0.986595937  0.228025183 1.32022481
precision   0.003554927  0.014201497 0.03258491
ti.sim[1]  -0.513835599  0.008595478 0.45472025
ti.sim[2]   0.718877361  1.215080550 1.66710948
ti.sim[3]   1.405130291  1.845166580 2.28317930
ti.sim[4]   2.595329397  3.044968843 3.54962437
ti.sim[5]   4.487396633  5.011986119 5.44359472
ti.sim[6]   5.154580559  5.805581718 6.28636836
ti.sim[7]   6.004447000  6.480178571 6.92026469
ti.sim[8]   7.429501783  7.960806981 8.48504568
ti.sim[9]   8.179122058  8.515062572 8.88338757
ti.sim[10]  8.402305816  8.784439692 9.19240815

Deviance information criterion:
-------------------------------
Mean deviance:  63.49 
penalty 2.951 
Penalized deviance: 66.45 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted