Error(s) in re-building vignettes:
--- re-building ‘medflex.Rnw’ using Sweave
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

medflex 0.6-7: Flexible Mediation Analysis Using Natural Effect Models
Please report bugs here: github.com/jmpsteen/medflex/issues
attbin01 
  0.3959 
attbin11 
   0.352 
Loading required package: carData
att0 
1.34 
att0 + att0:att1 
            1.44 
att1 
1.20 
att1 + att0:att1 
            1.29 
att0 + att1 + att0:att1 
                   1.73 

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

Traceback:
 1: title(...)
 2: localTitle(main = main, sub = sub, xlab = xlab, ylab = ylab,     ...)
 3: plot.default(c(ci[, 1], ci[, 2]), rep.int(yvals, 2), type = "n",     main = main, axes = FALSE, xlab = xlab, ylab = ylab, xlim = xlim,     ylim = ylim, ...)
 4: plot(c(ci[, 1], ci[, 2]), rep.int(yvals, 2), type = "n", main = main,     axes = FALSE, xlab = xlab, ylab = ylab, xlim = xlim, ylim = ylim,     ...)
 5: plot.neLhtCI(confint, transf = transf, ylabels = ylabels, yticks.at = yticks.at,     ...)
 6: plot(confint, transf = transf, ylabels = ylabels, yticks.at = yticks.at,     ...)
 7: plot.neLht(x = x, xlab = "log odds ratio", yticks.at = c(0, 0.15, 0.5, 0.65, 1))
 8: eval(as.call(args))
 9: eval(as.call(args))
10: plot.neEffdecomp(x = neEffdecomp(x, xRef = xRef, covLev = covLev),     xlab = "log odds ratio")
11: plot(x = neEffdecomp(x, xRef = xRef, covLev = covLev), xlab = "log odds ratio")
12: eval(as.call(args))
13: eval(as.call(args))
14: plot.neModel(neMod2, xlab = "log odds ratio")
15: plot(neMod2, xlab = "log odds ratio")
16: eval(expr, .GlobalEnv)
17: eval(expr, .GlobalEnv)
18: withVisible(eval(expr, .GlobalEnv))
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: 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, nlines = 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))})
23: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
24: evalFunc(ce, options)
25: tryCatchList(expr, classes, parentenv, handlers)
26: tryCatch(evalFunc(ce, options), finally = {    cat("\n")    sink()})
27: driver$runcode(drobj, chunk, chunkopts)
28: utils::Sweave(...)
29: engine$weave(file, quiet = quiet, encoding = enc)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: 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)    }    outputs <- c(outputs, output)}, error = function(e) {    thisOK <<- FALSE    fails <<- c(fails, file)    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",         file, conditionMessage(e)))})
34: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-clang/medflex.Rcheck/vign_test/medflex")
An irrecoverable exception occurred. R is aborting now ...