Error(s) in re-building vignettes:
  ...
--- re-building 'MultiObjectiveDecisionAnalysisinR.Rmd' using rmarkdown

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union


Attaching package: 'gridExtra'

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

    combine

 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
DecisionAnalysis
 --- call from context --- 
DecisionAnalysis::MAVF_Scores(SAVF_matrix, weights, names)
 --- call from argument --- 
if (class(SAVF_matrix) != "matrix") {
    stop("SAVF_matrix must be a matrix\n", "You have provided an object of the following class:\n", 
        "SAVF_matrix: ", class(SAVF_matrix), "\n")
}
 --- R stacktrace ---
where 1: DecisionAnalysis::MAVF_Scores(SAVF_matrix, weights, names)
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)
    }
    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-clang/Work/PKGS/DecisionAnalysis.Rcheck/vign_test/DecisionAnalysis", 
    ser_elibs = "/tmp/RtmpIVdchk/file3c01e4a3abf.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (SAVF_matrix, weights, names) 
{
    if (class(SAVF_matrix) != "matrix") {
        stop("SAVF_matrix must be a matrix\n", "You have provided an object of the following class:\n", 
            "SAVF_matrix: ", class(SAVF_matrix), "\n")
    }
    if (class(weights) != "matrix") {
        if (class(weights) != "numeric") {
            stop("weights must be of class numeric\n", "You have provided an object of the following class:\n", 
                "weights: ", class(weights))
        }
        if (sum(weights) < 1) {
            warning("The sum of weights is less than 1")
        }
        if (sum(weights) > 1) {
            warning("The sum of weights is greater than 1")
        }
        if (ncol(SAVF_matrix) != length(weights)) {
            stop("The number of columns in the SAVF matrix must equal the length of the vector of weights")
        }
        if (nrow(SAVF_matrix) != length(names)) {
            stop("The number of rows in the SAVF matrix must equal the length of the vector of names")
        }
    }
    SAVF_matrix[is.na(SAVF_matrix)] <- 0
    MAVF = SAVF_matrix %*% weights
    value <- data.frame(names, MAVF)
    names(value) <- c("Name", "Score")
    value <- value[order(value$Score, decreasing = TRUE), ]
    return(value)
}
<bytecode: 0x982f278>
<environment: namespace:DecisionAnalysis>
 --- function search by body ---
Function MAVF_Scores in namespace DecisionAnalysis has this body.
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 188-203 (MultiObjectiveDecisionAnalysisinR.Rmd) 
Error: processing vignette 'MultiObjectiveDecisionAnalysisinR.Rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building 'MultiObjectiveDecisionAnalysisinR.Rmd'

SUMMARY: processing the following file failed:
  'MultiObjectiveDecisionAnalysisinR.Rmd'

Error: Vignette re-building failed.
Execution halted