Error(s) in re-building vignettes:
  ...
--- re-building ‘mldr.Rnw’ using knitr
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
mldr
 --- call from context --- 
labelCoocurrencePlot(x, title, labelIndices, ...)
 --- call from argument --- 
if (class(tbl) != "matrix") return()
 --- R stacktrace ---
where 1: labelCoocurrencePlot(x, title, labelIndices, ...)
where 2: plot.mldr(emotions, type = "LC")
where 3: plot(emotions, type = "LC")
where 4: eval(expr, envir, enclos)
where 5: eval(expr, envir, enclos)
where 6: withVisible(eval(expr, envir, enclos))
where 7: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 8: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 9: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 10: 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)
where 11: evaluate::evaluate(...)
where 12: 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))
where 13: 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)))
where 14: block_exec(params)
where 15: call_block(x)
where 16: process_group.block(group)
where 17: process_group(group)
where 18: 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"), 
            ") ")
    })
where 19: process_file(text, output)
where 20: (if (grepl("\\.[Rr]md$", file)) knit2html_v1 else if (grepl("\\.[Rr]rst$", 
    file)) knit2pandoc else knit)(file, encoding = encoding, 
    quiet = quiet, envir = globalenv(), ...)
where 21: engine$weave(file, quiet = quiet, encoding = enc)
where 22: doTryCatch(return(expr), name, parentenv, handler)
where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 24: tryCatchList(expr, classes, parentenv, handlers)
where 25: 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)))
})
where 26: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mldr.Rcheck/vign_test/mldr", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpAnnXi9/file34c5f8d0904.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (mld, title, labelIndices, color.function = rainbow, 
    ...) 
{
    labelIndices <- labelIndices[labelIndices %in% mld$labels$index]
    if (length(labelIndices) == 0) 
        return()
    labels <- mld$dataset[, labelIndices]
    nlabels <- ncol(labels)
    tbl <- sapply(1:nlabels, function(ind1) sapply(1:nlabels, 
        function(ind2) if (ind2 < ind1) 
            sum(labels[, ind1] * labels[, ind2])
        else 0))
    colnames(tbl) <- colnames(labels)
    row.names(tbl) <- colnames(tbl)
    if (length(which(tbl != 0)) == 0) 
        return()
    tbl <- tbl[apply(tbl, 1, function(r) !all(r == 0)), ]
    tbl <- tbl[, apply(tbl, 2, function(r) !all(r == 0))]
    if (class(tbl) != "matrix") 
        return()
    color.sector <- color.function(length(union(colnames(tbl), 
        row.names(tbl))))
    color.links <- color.function(nrow(tbl) * ncol(tbl))
    color.links <- matrix(color.links, ncol = ncol(tbl), byrow = F)
    circos.par(gap.degree = 1)
    chordDiagram(tbl, annotationTrack = "grid", transparency = 0.5, 
        preAllocateTracks = list(track.height = 0.2), grid.col = color.sector, 
        col = color.links)
    for (si in get.all.sector.index()) {
        circos.axis(h = "top", labels.cex = 0.4, sector.index = si, 
            track.index = 2, direction = "inside", labels = FALSE, 
            major.tick.percentage = 0.25)
    }
    circos.trackPlotRegion(track.index = 1, panel.fun = function(x, 
        y) {
        xlim = get.cell.meta.data("xlim")
        ylim = get.cell.meta.data("ylim")
        xr <- get.cell.meta.data("xrange")
        sector.name <- get.cell.meta.data("sector.index")
        name.length <- nchar(sector.name)
        sector.name <- if (name.length <= 7) 
            sector.name
        else paste(substr(sector.name, 1, 3), substr(sector.name, 
            name.length - 3, name.length), sep = "-")
        circos.lines(xlim, c(mean(ylim) - 0.4, mean(ylim) - 0.4), 
            lty = 3)
        if (xr > 15) 
            for (p in seq(0, 1, by = 0.25)) {
                circos.text(p * (xlim[2] - xlim[1]) + xlim[1], 
                  mean(ylim) - 0.4, p, cex = 0.5, adj = c(0.5, 
                    -0.2), niceFacing = TRUE)
            }
        circos.text(mean(xlim), 0, xr, cex = 1, niceFacing = TRUE)
        circos.text(mean(xlim), 0.8, sector.name, cex = 1, niceFacing = TRUE, 
            facing = "clockwise")
    }, bg.border = NA)
    text(0, 1, title, cex = 1.3, pos = 3)
    text(0, -1, paste("Scumble =", mld$measures$scumble), pos = 1, 
        cex = 0.8)
    circos.clear()
}
<bytecode: 0x5637718d9bf0>
<environment: namespace:mldr>
 --- function search by body ---
Function labelCoocurrencePlot in namespace mldr has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1