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.871769245 -0.46205768 1.69796742
alpha1     -1.127793825  0.18541019 1.29149294
precision   0.003094386  0.01350123 0.03495383
ti.sim[1]  -0.455271201  0.01172612 0.45297604
ti.sim[2]   0.726187697  1.20384734 1.73693185
ti.sim[3]   1.412621359  1.83859673 2.27987674
ti.sim[4]   2.630643831  3.09172504 3.65649866
ti.sim[5]   4.420868375  5.00163136 5.47130630
ti.sim[6]   5.327242074  5.79711732 6.26909670
ti.sim[7]   6.042996865  6.45404034 6.92331077
ti.sim[8]   7.451549880  7.96977772 8.42147026
ti.sim[9]   8.134591343  8.53698226 8.87531703
ti.sim[10]  8.459011994  8.79241867 9.16447221

Deviance information criterion:
-------------------------------
Mean deviance:  63.44 
penalty 2.947 
Penalized deviance: 66.39 
-------------------------------
> 
> 
> 
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted