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

> ### Name: plot.tuts_poisPN
> ### Title: Plots and visual diagnostics of tuts_poisPN objects
> ### Aliases: plot.tuts_poisPN
> 
> ### ** Examples
> 
> # Note: Most of models included in tuts package are computationally intensive. In the example
> # below I set parameters to meet CRANs 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
> y=round(y-min(y))
> ti.mu=DATA$observed$ti.obs.tnorm
> ti.sd= rep(0.2, length(ti.mu))
> 
> #2. Fit the model:
> polyorder=2
> n.sim=1000
> PPN=tupoispn(y=y,ti.mu=ti.mu,ti.sd=ti.sd,polyorder=polyorder,n.sim=n.sim,CV=TRUE,n.cores=2)
Compiling model graph
   Resolving undeclared variables
   Allocating nodes
Graph information:
   Observed stochastic nodes: 10
   Unobserved stochastic nodes: 14
   Total graph size: 238

Initializing model

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

                                                                                
Preparing plots for const.  4% complete.
                                                                                
Preparing plots for alpha.  8% complete.
                                                                                
Preparing plots for alpha.  12% complete.
                                                                                
Preparing plots for alpha.  17% complete.
                                                                                
Preparing plots for lambda.  21% complete.
                                                                                
Preparing plots for lambda.  25% complete.
                                                                                
Preparing plots for lambda.  29% complete.
                                                                                
Preparing plots for lambda.  33% complete.
                                                                                
Preparing plots for lambda.  38% complete.
                                                                                
Preparing plots for lambda.  42% complete.
                                                                                
Preparing plots for lambda.  46% complete.
                                                                                
Preparing plots for lambda.  50% complete.
                                                                                
Preparing plots for lambda.  54% complete.
                                                                                
Preparing plots for lambda.  58% complete.
                                                                                
Preparing plots for ti.sim.  62% complete.
                                                                                
Preparing plots for ti.sim.  67% complete.
                                                                                
Preparing plots for ti.sim.  71% complete.
                                                                                
Preparing plots for ti.sim.  75% complete.
                                                                                
Preparing plots for ti.sim.  79% complete.
                                                                                
Preparing plots for ti.sim.  83% complete.
                                                                                
Preparing plots for ti.sim.  88% complete.
                                                                                
Preparing plots for ti.sim.  92% complete.
                                                                                
Preparing plots for ti.sim.  96% complete.
                                                                                
Preparing plots for ti.sim.  100% complete.
                                                                                
> plot(PPN,type='lambda')             # Volatility realizaitons.
> 
> 
> 
> 
> cleanEx()
Error in apply(sC[, 1:2], 1, function(x) paste0("\t", x[1], " (", x[2],  : 
  dim(X) must have a positive length
Calls: cleanEx
Execution halted