Running examples in ‘tuts-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.tuts_poisBFS
> ### Title: Plots and visual diagnostics of tuts_BFS objects
> ### Aliases: plot.tuts_poisBFS
> 
> ### ** 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 (simulation is chosen for illustrative purposes):
> DATA=simtuts(N=7,Harmonics=c(2,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
> y=round(y-min(y))
> ti.mu=DATA$observed$ti.obs.tnorm
> ti.sd= rep(0.2, length(ti.mu))
> 
> #2. Fit the model:
> n.sim=10
> TUPOIS=tupoisbsf(y=y,ti.mu=ti.mu,ti.sd=ti.sd,freqs='internal',n.sim=n.sim,n.chains=2,
+                  CV=TRUE,n.cores=2)
Compiling model graph
   Resolving undeclared variables
   Allocating nodes
Graph information:
   Observed stochastic nodes: 7
   Unobserved stochastic nodes: 23
   Total graph size: 209

Initializing model

[1] Cross-validation of the model....
> 
> #3. Generate plots and diagnostics of the model (optional parameters are listed in brackets):
> plot(TUPOIS,type='periodogram')               # spectral analysis (CI, burn).
> plot(TUPOIS,type='predTUTS', CI=0.99)         # One step predictions (CI, burn).
> plot(TUPOIS,type='cv')                        # 5 fold cross validation (CI, burn).
> plot(TUPOIS,type='GR')                        # Gelman-Rubin diagnostics (CI, burn).
> plot(TUPOIS,type='mcmc')                      # MCMC diagnostics.

                                                                                
Preparing plots for const.  3% complete.
                                                                                
Preparing plots for IBeta.  6% complete.
                                                                                
Preparing plots for IBeta.  9% complete.
                                                                                
Preparing plots for IBeta.  12% complete.
                                                                                
Preparing plots for IBeta.  15% complete.
                                                                                
Preparing plots for IBeta.  18% complete.
                                                                                
Preparing plots for IBeta.  21% complete.
                                                                                
Preparing plots for alpha1.  24% complete.
                                                                                
Preparing plots for alpha2.  27% complete.
                                                                                
Preparing plots for alpha3.  30% complete.
                                                                                
Preparing plots for Spectrum.  33% complete.
                                                                                
Preparing plots for Spectrum.  36% complete.
                                                                                
Preparing plots for Spectrum.  39% complete.
                                                                                
Preparing plots for ti.sim.  42% complete.
                                                                                
Preparing plots for ti.sim.  45% complete.
                                                                                
Preparing plots for ti.sim.  48% complete.
                                                                                
Preparing plots for ti.sim.  52% complete.
                                                                                
Preparing plots for ti.sim.  55% complete.
                                                                                
Preparing plots for ti.sim.  58% complete.
                                                                                
Preparing plots for ti.sim.  61% complete.
                                                                                
Preparing plots for beta.  64% complete.
                                                                                
Preparing plots for beta.  67% complete.
                                                                                
Preparing plots for beta.  70% complete.
                                                                                
Preparing plots for beta.  73% complete.
                                                                                
Preparing plots for beta.  76% complete.
                                                                                
Preparing plots for beta.  79% complete.
                                                                                
Preparing plots for lambda.  82% complete.
                                                                                
Preparing plots for lambda.  85% complete.
                                                                                
Preparing plots for lambda.  88% complete.
                                                                                
Preparing plots for lambda.  91% complete.
                                                                                
Preparing plots for lambda.  94% complete.
                                                                                
Preparing plots for lambda.  97% complete.
                                                                                
Preparing plots for lambda.  100% complete.
                                                                                
> plot(TUPOIS,type='lambda')                    # Realizaitons of lambda.
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("plot.tuts_poisBFS", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> cleanEx()
Error: connections left open:
	modelstring (textConnection)
Execution halted