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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.tuts_ar1
> ### Title: Plots and visual diagnostics of tuts_ar1 objects
> ### Aliases: plot.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=TRUE,n.cores=2)
Compiling model graph
   Resolving undeclared variables
   Allocating nodes
Graph information:
   Observed stochastic nodes: 9
   Unobserved stochastic nodes: 13
   Total graph size: 104

Initializing model

[1] Cross-validation of the model....
> 
> #3. Generate plots and diagnostics of the model (optional parameters are listed in brackets):
> plot(TUAR1,type='predTUTS')               # One step out of salmple predictions (CI, burn).
> plot(TUAR1,type='par', burn=0.4)          # Distributions of parameters (burn).
> plot(TUAR1,type='mcmc')                   # MCMC diagnostics.

                                                                                
Preparing plots for const.  8% complete.
                                                                                
Preparing plots for alpha1.  15% complete.
                                                                                
Preparing plots for precision.  23% complete.
                                                                                
Preparing plots for ti.sim.  31% complete.
                                                                                
Preparing plots for ti.sim.  38% complete.
                                                                                
Preparing plots for ti.sim.  46% complete.
                                                                                
Preparing plots for ti.sim.  54% complete.
                                                                                
Preparing plots for ti.sim.  62% complete.
                                                                                
Preparing plots for ti.sim.  69% complete.
                                                                                
Preparing plots for ti.sim.  77% complete.
                                                                                
Preparing plots for ti.sim.  85% complete.
                                                                                
Preparing plots for ti.sim.  92% complete.
                                                                                
Preparing plots for ti.sim.  100% complete.
                                                                                
> plot(TUAR1,type='cv', burn=0.4, CI=0.9)   # 5 fold cross validation (CI, burn).
Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L,  : 
  invalid 'digits' argument
Calls: plot ... eval -> paste -> format -> format.default -> prettyNum
Execution halted