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.554697009 -0.421722510 1.80530248
alpha1     -0.744787485  0.211511583 1.42359408
precision   0.002912722  0.013718796 0.03385173
ti.sim[1]  -0.488140815  0.003115278 0.50407873
ti.sim[2]   0.690031662  1.174331998 1.66201917
ti.sim[3]   1.336308783  1.808815936 2.27507871
ti.sim[4]   2.598026760  3.099501323 3.66492351
ti.sim[5]   4.492352529  5.018244241 5.51432018
ti.sim[6]   5.344612789  5.783261266 6.31793603
ti.sim[7]   5.976070240  6.470332111 7.02532812
ti.sim[8]   7.509550238  7.956932765 8.40306240
ti.sim[9]   8.088873300  8.514772386 8.88787778
ti.sim[10]  8.412740242  8.761109273 9.19734955

Deviance information criterion:
-------------------------------
Mean deviance:  63.42 
penalty 2.749 
Penalized deviance: 66.17 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted