- using R Under development (unstable) (2026-11-11 r90876)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 23.1.5 (2)
Debian flang version 23.1.5 (2)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-11-13 12:08:29 UTC
- checking for file ‘serodynamics/DESCRIPTION’ ... OK
- this is package ‘serodynamics’ version ‘0.1.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/4s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: 'rjags'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘serodynamics’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/3s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [13s/18s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [14s/19s] ERROR
Running examples in ‘serodynamics-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: postprocess_jags_output
> ### Title: Postprocess JAGS output
> ### Aliases: postprocess_jags_output
>
> ### ** Examples
>
> set.seed(1)
> raw_data <-
+ serocalculator::typhoid_curves_nostrat_100 |>
+ dplyr::filter(
+ antigen_iso |> stringr::str_starts(pattern = "HlyE")
+ ) |>
+ sim_case_data(
+ n = 5,
+ antigen_isos = c("HlyE_IgA", "HlyE_IgG")
+ )
> prepped_data <- prep_data(raw_data)
> priors <- prep_priors(max_antigens = prepped_data$n_antigen_isos)
> nchains <- 2
> # nr of MC chains to run simultaneously
> nadapt <- 100
> # nr of iterations for adaptation
> nburnin <- 100
> # nr of iterations to use for burn-in
> nmc <- 100
> # nr of samples in posterior chains
> niter <- 100
> # nr of iterations for posterior sample
> nthin <- round(niter / nmc)
> # thinning needed to produce nmc from niter
>
> tomonitor <- c("y0", "y1", "t1", "alpha", "shape")
>
> file_mod <- serodynamics_example("model.jags")
>
> set.seed(11325)
> jags_post <- runjags::run.jags(
+ model = file_mod,
+ data = c(prepped_data, priors),
+ inits = initsfunction,
+ method = "parallel",
+ adapt = nadapt,
+ burnin = nburnin,
+ thin = nthin,
+ sample = nmc,
+ n.chains = nchains,
+ monitor = tomonitor,
+ summarise = FALSE
+ )
Warning in structure(c(0, 0, 0, 0, 0, 5, 6, 7, 8, NA, 6, 30, 13, 14, 14, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(0.301489, -0.0462667, -0.351521, -0.252303, -0.214489, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 7, 7, 1, 1, -4, -4, -1, -1), .Dim = c(2, 5)) :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1e-05, 1e-05, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 0, 0, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(4, 4, 1, 1), .Dim = c(2, 2)) :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(0, 0, 0, 0, 0, 5, 6, 7, 8, NA, 6, 30, 13, 14, 14, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(0.301489, -0.0462667, -0.351521, -0.252303, -0.214489, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 7, 7, 1, 1, -4, -4, -1, -1), .Dim = c(2, 5)) :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1e-05, 1e-05, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 0, 0, :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Warning in structure(c(4, 4, 1, 1), .Dim = c(2, 2)) :
Replacing special names ‘.Dim’ is deprecated; use ‘dim’ instead.
Calling 2 simulations using the parallel method...
Following the progress of chain 1 (the program will wait for all chains
to finish before continuing):
Welcome to JAGS 5.0.1 on Fri Nov 13 13:10:20 2026
JAGS is free software and comes with ABSOLUTELY NO WARRANTY
Loading module: basemod: ok
Loading module: bugs: ok
Loading module: diag: ok
. . Reading data file data.txt
. Compiling model graph
Resolving undeclared variables
Allocating nodes
Graph information:
Fully observed stochastic nodes: 42
Unobserved stochastic nodes: 24
Total graph size: 930
. Reading parameter file inits1.txt
. Initializing model
Error in node (log(((y1[1,2]^(1-shape[1,2]))-((1-shape[1,2])*alpha[1,2]*(smpl.t[1,1]-t1[1,2])))))
Invalid parent values at model initialization
Deleting model
. Adaptation skipped: model is not in adaptive mode.
. Updating 100
-------------------------------------------------| 100
Can't update. No model!
Deleting model
. Can't set monitor. No model!
. Can't set monitor. No model!
. Can't set monitor. No model!
. Can't set monitor. No model!
. Can't set monitor. No model!
. Updating 100
-------------------------------------------------| 100
Can't update. No model!
Deleting model
. No model
. Can't dump CODA output. No model!
. Can't dump samplers. No model!
. Updating 0
Can't update. No model!
Deleting model
. Deleting model
. Exiting JAGS
All chains have finished
Note: the model did not require adaptation
Error in runjags.readin(directory = startinfo$directory, silent.jags = silent.jags, :
All the simulations appear to have crashed - check the model output in failed.jags() for clues
Calls: <Anonymous> -> extend.jags -> runjags.readin
Note: Either one or more simulation(s) failed, or there was an error in
processing the results. You may be able to retrieve any successful
simulations using:
results.jags("/home/hornik/tmp/scratch/RtmpR1PsD1/runjagsfiles3efb5b7e5afd16",
recover.chains=TRUE)
See the help file for that function for possible options.
To remove failed simulation folders use cleanup.jags() - this will be
run automatically when the runjags package is unloaded
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
plot_predicted_curve 5.37 0.097 7.291
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/16s] OK
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [11s/15s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/4s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘dobson.Rmd’ using rmarkdown
Quitting from dobson.Rmd:17-22 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'rjags'
---
Backtrace:
▆
1. └─base::library(rjags)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'dobson.Rmd' failed with diagnostics:
there is no package called 'rjags'
--- failed re-building ‘dobson.Rmd’
SUMMARY: processing the following file failed:
‘dobson.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs