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.838976768 -0.519267011 2.13482870
alpha1     -1.230341893  0.222456263 1.40245705
precision   0.002889678  0.013604923 0.04008421
ti.sim[1]  -0.498626815  0.002598724 0.41856188
ti.sim[2]   0.727898302  1.170700290 1.69252214
ti.sim[3]   1.341193789  1.798082065 2.31499658
ti.sim[4]   2.525225425  3.085846871 3.64293624
ti.sim[5]   4.449352040  5.006861060 5.42600674
ti.sim[6]   5.359801058  5.810565552 6.25284662
ti.sim[7]   6.062752866  6.471969717 7.01370249
ti.sim[8]   7.536766551  7.960966933 8.45855262
ti.sim[9]   8.103197228  8.508863617 8.86485258
ti.sim[10]  8.401254641  8.782706346 9.20485698

Deviance information criterion:
-------------------------------
Mean deviance:  63.5 
penalty 2.924 
Penalized deviance: 66.42 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted