Error(s) in re-building vignettes:
  ...
--- re-building ‘bamp.Rmd’ using rmarkdown

 *** caught segfault ***

 *** caught segfault ***
address 0x1, cause 'memory not mapped'
address 0x1, cause 'memory not mapped'

Traceback:
 1: FUN(X[[i]], ...)
 2: lapply(X = S, FUN = FUN, ...)
 3: doTryCatch(return(expr), name, parentenv, handler)
 4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 5: tryCatchList(expr, classes, parentenv, handlers)
 6: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
 7: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
 8: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
 9: FUN(X[[i]], ...)

Traceback:
10:  1: lapply(seq_len(cores), inner.do)
FUN(X[[i]], ...)11: 
parallel::mclapply(1:chains, singlerun, cases, population, blocks,  2:     numbers, periods_per_agegroup, numbersmcmc, modelsettings, lapply(X = S, FUN = FUN, ...)    allhyper, theta.sample, phi.sample, psi.sample, theta2.sample, 
    phi2.sample, psi2.sample, ksi, delta.sample, kappa.sample,  3:     kappa2.sample, lambda.sample, lambda2.sample, ny.sample, doTryCatch(return(expr), name, parentenv, handler)    ny2.sample, my.sample, dev.sample, verbose, mc.cores = cores)

 4: 12: tryCatchOne(expr, names, parentenv, handlers[[1L]])bamp(cases, population, age = "rw1", period = "rw1", cohort = "rw1", 
    periods_per_agegroup = 5) 5: 
tryCatchList(expr, classes, parentenv, handlers)13: 
eval(expr, envir, enclos) 6: 
tryCatch(expr, error = function(e) {14:     call <- conditionCall(e)eval(expr, envir, enclos)    if (!is.null(call)) {
        if (identical(call[[1L]], quote(doTryCatch))) 15:             call <- sys.call(-4L)withVisible(eval(expr, envir, enclos))        dcall <- deparse(call)[1L]
        prefix <- paste("Error in", dcall, ": ")16:         LONG <- 75LwithCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler,         sm <- strsplit(conditionMessage(e), "\n")[[1L]]    error = eHandler, message = mHandler)        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
        if (is.na(w)) 17:             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], handle(ev <- withCallingHandlers(withVisible(eval(expr, envir,                 type = "b")    enclos)), warning = wHandler, error = eHandler, message = mHandler))        if (w > LONG) 
            prefix <- paste0(prefix, "\n  ")18:     }timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr,     else prefix <- "Error : "    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))    msg <- paste0(prefix, conditionMessage(e), "\n")
    .Internal(seterrmessage(msg[1L]))19:     if (!silent && isTRUE(getOption("show.error.messages"))) {evaluate_call(expr, parsed$src[[i]], envir = envir, enclos = enclos,         cat(msg, file = outFile)    debug = debug, last = i == length(out), use_try = stop_on_error !=         .Internal(printDeferredWarnings())        2L, keep_warning = keep_warning, keep_message = keep_message,     }    output_handler = output_handler, include_timing = include_timing)    invisible(structure(msg, class = "try-error", condition = e))
})20: 
evaluate::evaluate(...) 7: 
try(lapply(X = S, FUN = FUN, ...), silent = TRUE)21: 
evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning),  8:     keep_message = !isFALSE(options$message), stop_on_error = if (options$error && sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))        options$include) 0L else 2L, output_handler = knit_handlers(options$render, 
        options)) 9: 
FUN(X[[i]], ...)22: 
in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE, 10:     keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message), lapply(seq_len(cores), inner.do)    stop_on_error = if (options$error && options$include) 0L else 2L, 
    output_handler = knit_handlers(options$render, options)))11: 
parallel::mclapply(1:chains, singlerun, cases, population, blocks, 23:     numbers, periods_per_agegroup, numbersmcmc, modelsettings, block_exec(params)    allhyper, theta.sample, phi.sample, psi.sample, theta2.sample, 
    phi2.sample, psi2.sample, ksi, delta.sample, kappa.sample, 24:     kappa2.sample, lambda.sample, lambda2.sample, ny.sample, call_block(x)    ny2.sample, my.sample, dev.sample, verbose, mc.cores = cores)

25: 12: process_group.block(group)bamp(cases, population, age = "rw1", period = "rw1", cohort = "rw1", 
    periods_per_agegroup = 5)26: 
process_group(group)13: 
eval(expr, envir, enclos)27: 
withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), 14:     error = function(e) {eval(expr, envir, enclos)        setwd(wd)
        cat(res, sep = "\n", file = output %n% "")15:         message("Quitting from lines ", paste(current_lines(i), withVisible(eval(expr, envir, enclos))            collapse = "-"), " (", knit_concord$get("infile"), 
            ") ")16:     })withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)28: 
process_file(text, output)17: 
handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 29:     enclos)), warning = wHandler, error = eHandler, message = mHandler))knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)18: 
timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 30:     envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)19: 
evaluate_call(expr, parsed$src[[i]], envir = envir, enclos = enclos, 31:     debug = debug, last = i == length(out), use_try = stop_on_error != vweave_rmarkdown(...)        2L, keep_warning = keep_warning, keep_message = keep_message, 
    output_handler = output_handler, include_timing = include_timing)32: 
engine$weave(file, quiet = quiet, encoding = enc)20: 
evaluate::evaluate(...)33: 
doTryCatch(return(expr), name, parentenv, handler)21: 
evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning), 34:     keep_message = !isFALSE(options$message), stop_on_error = if (options$error && tryCatchOne(expr, names, parentenv, handlers[[1L]])        options$include) 0L else 2L, output_handler = knit_handlers(options$render, 
        options))35: 
tryCatchList(expr, classes, parentenv, handlers)22: 
in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE, 36:     keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message), tryCatch({    stop_on_error = if (options$error && options$include) 0L else 2L,     engine$weave(file, quiet = quiet, encoding = enc)    output_handler = knit_handlers(options$render, options)))    setwd(startdir)
    output <- find_vignette_product(name, by = "weave", engine = engine)23:     if (!have.makefile && vignette_is_tex(output)) {block_exec(params)        texi2pdf(file = output, clean = FALSE, quiet = quiet)
        output <- find_vignette_product(name, by = "texi2pdf", 24:             engine = engine)call_block(x)    }
}, error = function(e) {25:     OK <<- FALSEprocess_group.block(group)    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", 
        file, conditionMessage(e)))26: })process_group(group)

37: 27: tools:::.buildOneVignette("bamp.Rmd", "/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/bamp.Rcheck/vign_test/bamp", withCallingHandlers(if (tangle) process_tangle(group) else process_group(group),     TRUE, FALSE, "bamp", "UTF-8", "/tmp/Rtmpe8BBnS/file75352478df9f.rds")    error = function(e) {
        setwd(wd)An irrecoverable exception occurred. R is aborting now ...
        cat(res, sep = "\n", file = output %n% "")        message("Quitting from lines ", paste(current_lines(i),             collapse = "-"), " (", knit_concord$get("infile"),             ") ")    })
28: process_file(text, output)
29: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet,     encoding = encoding)
30: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(),     ...)
31: vweave_rmarkdown(...)
32: engine$weave(file, quiet = quiet, encoding = enc)
33: doTryCatch(return(expr), name, parentenv, handler)
34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
35: tryCatchList(expr, classes, parentenv, handlers)
36: tryCatch({    engine$weave(file, quiet = quiet, encoding = enc)    setwd(startdir)    output <- find_vignette_product(name, by = "weave", engine = engine)    if (!have.makefile && vignette_is_tex(output)) {        texi2pdf(file = output, clean = FALSE, quiet = quiet)        output <- find_vignette_product(name, by = "texi2pdf",             engine = engine)    }}, error = function(e) {    OK <<- FALSE    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",         file, conditionMessage(e)))})
37: tools:::.buildOneVignette("bamp.Rmd", "/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/bamp.Rcheck/vign_test/bamp",     TRUE, FALSE, "bamp", "UTF-8", "/tmp/Rtmpe8BBnS/file75352478df9f.rds")
An irrecoverable exception occurred. R is aborting now ...
Quitting from lines 31-33 (bamp.Rmd) 
Error: processing vignette 'bamp.Rmd' failed with diagnostics:
attempt to set an attribute on NULL
--- failed re-building ‘bamp.Rmd’

--- re-building ‘modeling.html.asis’ using asis
--- finished re-building ‘modeling.html.asis’

--- re-building ‘prediction.html.asis’ using asis
--- finished re-building ‘prediction.html.asis’

--- re-building ‘simulation.html.asis’ using asis
--- finished re-building ‘simulation.html.asis’

SUMMARY: processing the following file failed:
  ‘bamp.Rmd’

Error: Vignette re-building failed.
Execution halted