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.65169707 -0.56389959 2.06879873
alpha1     -0.92723437  0.22931743 1.55870108
precision   0.00263315  0.01288859 0.04498463
ti.sim[1]  -0.50204385  0.01135555 0.50490971
ti.sim[2]   0.68706720  1.19104978 1.57615681
ti.sim[3]   1.35898553  1.81860827 2.27962883
ti.sim[4]   2.55811167  3.08105029 3.53602326
ti.sim[5]   4.53597117  5.00119010 5.55305801
ti.sim[6]   5.38706021  5.81607547 6.21562177
ti.sim[7]   5.98048789  6.48414439 6.96175638
ti.sim[8]   7.42457477  7.98417250 8.43790084
ti.sim[9]   8.20083194  8.54580726 8.98102994
ti.sim[10]  8.41168259  8.79845056 9.26311824

Deviance information criterion:
-------------------------------
Mean deviance:  63.57 
penalty 2.952 
Penalized deviance: 66.52 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted