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

sh: line 1: 2311987 Segmentation fault      (core dumped) '/data/gannet/ripley/R/R-devel/bin/R' --vanilla --no-echo > '/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e73cb4ac7' 2>&1 < '/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e770f3d70'
--- re-building ‘linescan-data.Rmd’ using rmarkdown

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

Traceback:
 1: setTbbThreadOptions(numThreads, stackSize)
 2: RcppParallel::setThreadOptions(n_cores)
 3: sum_rows(sim_mat)
 4: best_swaps_naive(img)
 5: eval_dots(dots)
 6: purrr::rerun(9, best_swaps_naive(img))
 7: eval(lhs, parent, parent)
 8: eval(lhs, parent, parent)
 9: purrr::rerun(9, best_swaps_naive(img)) %>% purrr::map_int(1)
10: best_swaps(img[, , i, , drop = FALSE], quick = quick)
11: img_detrend_rh(converted_img)
12: eval(expr, envir, enclos)
13: eval(expr, envir, enclos)
14: withVisible(eval(expr, envir, enclos))
15: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler,     error = eHandler, message = mHandler)
16: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir,     enclos)), warning = wHandler, error = eHandler, message = mHandler))
17: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr,     envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
18: evaluate_call(expr, parsed$src[[i]], envir = envir, enclos = enclos,     debug = debug, last = i == length(out), use_try = stop_on_error !=         2L, keep_warning = keep_warning, keep_message = keep_message,     output_handler = output_handler, include_timing = include_timing)
19: evaluate::evaluate(...)
20: evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning),     keep_message = !isFALSE(options$message), stop_on_error = if (options$error &&         options$include) 0L else 2L, output_handler = knit_handlers(options$render,         options))
21: in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE,     keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message),     stop_on_error = if (options$error && options$include) 0L else 2L,     output_handler = knit_handlers(options$render, options)))
22: block_exec(params)
23: call_block(x)
24: process_group.block(group)
25: process_group(group)
26: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group),     error = function(e) {        setwd(wd)        cat(res, sep = "\n", file = output %n% "")        message("Quitting from lines ", paste(current_lines(i),             collapse = "-"), " (", knit_concord$get("infile"),             ") ")    })
27: process_file(text, output)
28: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
29: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(),     output_dir = getwd(), ...)
30: vweave_rmarkdown(...)
31: engine$weave(file, quiet = quiet, encoding = enc)
32: doTryCatch(return(expr), name, parentenv, handler)
33: tryCatchOne(expr, names, parentenv, handlers[[1L]])
34: tryCatchList(expr, classes, parentenv, handlers)
35: 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)))})
36: tools:::.buildOneVignette("linescan-data.Rmd", "/data/gannet/ripley/R/packages/tests-devel/detrendr.Rcheck/vign_test/detrendr",     TRUE, FALSE, "linescan-data", "UTF-8", "/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e27c841d9.rds")
An irrecoverable exception occurred. R is aborting now ...
sh: line 1: 2312624 Segmentation fault      (core dumped) '/data/gannet/ripley/R/R-devel/bin/R' --vanilla --no-echo > '/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e32c28c9a' 2>&1 < '/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e4aab237a'
--- re-building ‘single-images.Rmd’ using rmarkdown
`geom_smooth()` using method = 'loess' and formula 'y ~ x'
`geom_smooth()` using method = 'loess' and formula 'y ~ x'

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

Traceback:
 1: setTbbThreadOptions(numThreads, stackSize)
 2: RcppParallel::setThreadOptions(n_cores)
 3: myrpois_frames(frame_means, frame_length)
 4: best_swaps_naive(img)
 5: eval_dots(dots)
 6: purrr::rerun(9, best_swaps_naive(img))
 7: eval(lhs, parent, parent)
 8: eval(lhs, parent, parent)
 9: purrr::rerun(9, best_swaps_naive(img)) %>% purrr::map_int(1)
10: best_swaps(img[, , i, , drop = FALSE], quick = quick)
11: img_detrend_robinhood(my_img_threshed)
12: eval(expr, envir, enclos)
13: eval(expr, envir, enclos)
14: withVisible(eval(expr, envir, enclos))
15: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler,     error = eHandler, message = mHandler)
16: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir,     enclos)), warning = wHandler, error = eHandler, message = mHandler))
17: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr,     envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
18: evaluate_call(expr, parsed$src[[i]], envir = envir, enclos = enclos,     debug = debug, last = i == length(out), use_try = stop_on_error !=         2L, keep_warning = keep_warning, keep_message = keep_message,     output_handler = output_handler, include_timing = include_timing)
19: evaluate::evaluate(...)
20: evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning),     keep_message = !isFALSE(options$message), stop_on_error = if (options$error &&         options$include) 0L else 2L, output_handler = knit_handlers(options$render,         options))
21: in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE,     keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message),     stop_on_error = if (options$error && options$include) 0L else 2L,     output_handler = knit_handlers(options$render, options)))
22: block_exec(params)
23: call_block(x)
24: process_group.block(group)
25: process_group(group)
26: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group),     error = function(e) {        setwd(wd)        cat(res, sep = "\n", file = output %n% "")        message("Quitting from lines ", paste(current_lines(i),             collapse = "-"), " (", knit_concord$get("infile"),             ") ")    })
27: process_file(text, output)
28: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
29: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(),     output_dir = getwd(), ...)
30: vweave_rmarkdown(...)
31: engine$weave(file, quiet = quiet, encoding = enc)
32: doTryCatch(return(expr), name, parentenv, handler)
33: tryCatchOne(expr, names, parentenv, handlers[[1L]])
34: tryCatchList(expr, classes, parentenv, handlers)
35: 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)))})
36: tools:::.buildOneVignette("single-images.Rmd", "/data/gannet/ripley/R/packages/tests-devel/detrendr.Rcheck/vign_test/detrendr",     TRUE, FALSE, "single-images", "UTF-8", "/tmp/RtmpltEWKx/working_dir/Rtmpg10xHj/file23463e45de1fa4.rds")
An irrecoverable exception occurred. R is aborting now ...
SUMMARY: processing the following files failed:
  ‘linescan-data.Rmd’ ‘single-images.Rmd’

Error: Vignette re-building failed.
Execution halted