Error(s) in re-building vignettes:
  ...
--- re-building ‘MultipleComparisons.Rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
PairViz
 --- call from context --- 
order_best(weights)
 --- call from argument --- 
if (class(d) == "dist") {
    d <- as.matrix(d)
    dnames <- labels(d)
} else dnames <- colnames(d)
 --- R stacktrace ---
where 1: order_best(weights)
where 2: eval(expr, envir, enclos)
where 3: eval(expr, envir, enclos)
where 4: withVisible(eval(expr, envir, enclos))
where 5: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 6: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 7: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 8: 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 9: evaluate::evaluate(...)
where 10: 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 11: 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 12: block_exec(params)
where 13: call_block(x)
where 14: process_group.block(group)
where 15: process_group(group)
where 16: 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 17: process_file(text, output)
where 18: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)
where 19: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 20: vweave_rmarkdown(...)
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)
    }
}, error = function(e) {
    OK <<- FALSE
    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", 
        file, conditionMessage(e)))
})
where 26: tools:::.buildOneVignette("MultipleComparisons.Rmd", "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/PairViz.Rcheck/vign_test/PairViz", 
    TRUE, FALSE, "MultipleComparisons", "UTF-8", "/home/hornik/tmp/scratch/RtmpoURH9M/file6116645ac653.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (d, maxexact = 9, nsamples = 50000, path_weight = sum, 
    cycle = FALSE, path_dir = path_cor, ...) 
{
    if (class(d) == "dist") {
        d <- as.matrix(d)
        dnames <- labels(d)
    }
    else dnames <- colnames(d)
    n <- nrow(d)
    if (n <= maxexact) 
        perms <<- permutations(n, n)
    else perms <- t(sapply(1:nsamples, function(i) sample(n, 
        n)))
    pathlens <- apply(perms, 1, function(h) path_weight(path_values(h, 
        d, cycle)))
    o <- perms[which.min(pathlens), ]
    if (is.function(path_dir)) 
        o <- best_orientation(o, d, cycle, path_dir)
    return(o)
}
<bytecode: 0x55557f652a20>
<environment: namespace:PairViz>
 --- function search by body ---
Function order_best in namespace PairViz has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1
--- re-building ‘PairVizIntroduction.Rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
PairViz
 --- call from context --- 
order_best(d7, cycle = TRUE)
 --- call from argument --- 
if (class(d) == "dist") {
    d <- as.matrix(d)
    dnames <- labels(d)
} else dnames <- colnames(d)
 --- R stacktrace ---
where 1: order_best(d7, cycle = TRUE)
where 2: eval(expr, envir, enclos)
where 3: eval(expr, envir, enclos)
where 4: withVisible(eval(expr, envir, enclos))
where 5: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 6: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 7: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 8: 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 9: evaluate::evaluate(...)
where 10: 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 11: 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 12: block_exec(params)
where 13: call_block(x)
where 14: process_group.block(group)
where 15: process_group(group)
where 16: 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 17: process_file(text, output)
where 18: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)
where 19: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 20: vweave_rmarkdown(...)
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)
    }
}, error = function(e) {
    OK <<- FALSE
    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", 
        file, conditionMessage(e)))
})
where 26: tools:::.buildOneVignette("PairVizIntroduction.Rmd", "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/PairViz.Rcheck/vign_test/PairViz", 
    TRUE, FALSE, "PairVizIntroduction", "UTF-8", "/home/hornik/tmp/scratch/RtmpoURH9M/file61161e97aa1a.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (d, maxexact = 9, nsamples = 50000, path_weight = sum, 
    cycle = FALSE, path_dir = path_cor, ...) 
{
    if (class(d) == "dist") {
        d <- as.matrix(d)
        dnames <- labels(d)
    }
    else dnames <- colnames(d)
    n <- nrow(d)
    if (n <= maxexact) 
        perms <<- permutations(n, n)
    else perms <- t(sapply(1:nsamples, function(i) sample(n, 
        n)))
    pathlens <- apply(perms, 1, function(h) path_weight(path_values(h, 
        d, cycle)))
    o <- perms[which.min(pathlens), ]
    if (is.function(path_dir)) 
        o <- best_orientation(o, d, cycle, path_dir)
    return(o)
}
<bytecode: 0x56156a170978>
<environment: namespace:PairViz>
 --- function search by body ---
Function order_best in namespace PairViz has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1
--- re-building ‘pcp.Rmd’ using rmarkdown
--- finished re-building ‘pcp.Rmd’

SUMMARY: processing the following files failed:
  ‘MultipleComparisons.Rmd’ ‘PairVizIntroduction.Rmd’

Error: Vignette re-building failed.
Execution halted