Error(s) in re-building vignettes:
  ...
--- re-building ‘EloRating_tutorial.Rmd’ using rmarkdown
Loading required package: zoo

Attaching package: 'zoo'

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

    as.Date, as.Date.numeric

Loading required package: sna
Loading required package: statnet.common

Attaching package: 'statnet.common'

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

    order

Loading required package: network
network: Classes for Relational Data
Version 1.15 created on 2019-04-01.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

sna: Tools for Social Network Analysis
Version 2.4 created on 2016-07-23.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
 For citation information, type citation("sna").
 Type help(package="sna") to get started.

 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
EloRating
 --- call from context --- 
prunk(mat)
 --- call from argument --- 
if (class(eloobject) == "elo") {
    xd <- eloobject$logtable
    xd$Date <- as.Date(eloobject$truedates[xd[, 1]])
    pres <- data.frame(Date = eloobject$truedates, eloobject$pmat)
    pres2 <- eloobject$pmat
    if (is.null(daterange[1])) {
        daterange <- c(min(xd$Date), max(xd$Date))
    }
    else {
        daterange <- as.Date(daterange)
    }
    xd <- xd[xd$Date <= daterange[2] & xd$Date >= daterange[1], 
        ]
    pres2 <- pres2[pres$Date <= daterange[2] & pres$Date >= daterange[1], 
        ]
    pres <- pres[pres$Date <= daterange[2] & pres$Date >= daterange[1], 
        ]
    if (0 %in% colSums(pres2)) {
        pres2 <- pres2[, -c(which(colSums(pres2) == 0))]
        ids <- colnames(pres2)
        pres <- pres[, c("Date", ids)]
    }
    startval <- as.numeric(eloobject$misc["startvalue"])
    kval <- as.numeric(eloobject$misc["k"])
    init <- as.character(eloobject$misc["init"])
    eloobject <- elo.seq(xd$winner, xd$loser, xd$Date, draw = xd$draw, 
        presence = pres, startvalue = startval, k = kval, init = init, 
        progressbar = F, runcheck = F)
    mat <- creatematrix(eloobject, drawmethod = "omit")
    if (length(intersect(colnames(pres2), colnames(mat))) < length(colnames(pres2))) {
        add <- colnames(pres2)[which(!colnames(pres2) %in% colnames(mat))]
        for (i in 1:length(add)) {
            mat <- cbind(mat, 0)
            colnames(mat)[ncol(mat)] <- add[i]
            mat <- rbind(mat, 0)
            rownames(mat)[nrow(mat)] <- add[i]
        }
    }
    mat2 <- mat
    co <- cbind(t(combn(colnames(mat), 2)), NA)
    for (i in 1:nrow(co)) {
        if (max(rowSums(pres[, co[i, 1:2]])) < 2) {
            mat2[co[i, 1], co[i, 2]] <- mat2[co[i, 2], co[i, 
                1]] <- NA
        }
    }
    res <- mat[upper.tri(mat, diag = FALSE)] + t(mat)[upper.tri(t(mat), 
        diag = FALSE)]
    N <- length(res)
    pu <- length(which(res == 0))/N
    res <- na.omit(mat2[upper.tri(mat2, diag = FALSE)] + t(mat2)[upper.tri(t(mat2), 
        diag = FALSE)])
    N2 <- length(res)
    pup <- length(which(res == 0))/N2
    res <- c(round(pu, 3), N, round(pup, 3), N2)
    names(res) <- c("pu.all", "dyads.all", "pu.cores", "dyads.cores")
}
 --- R stacktrace ---
where 1: prunk(mat)
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-gcc/Work/PKGS/EloRating.Rcheck/vign_test/EloRating", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmppzsxJE/file31cd1f27b0b5.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (eloobject, daterange = NULL) 
{
    if (class(eloobject) == "elo") {
        xd <- eloobject$logtable
        xd$Date <- as.Date(eloobject$truedates[xd[, 1]])
        pres <- data.frame(Date = eloobject$truedates, eloobject$pmat)
        pres2 <- eloobject$pmat
        if (is.null(daterange[1])) {
            daterange <- c(min(xd$Date), max(xd$Date))
        }
        else {
            daterange <- as.Date(daterange)
        }
        xd <- xd[xd$Date <= daterange[2] & xd$Date >= daterange[1], 
            ]
        pres2 <- pres2[pres$Date <= daterange[2] & pres$Date >= 
            daterange[1], ]
        pres <- pres[pres$Date <= daterange[2] & pres$Date >= 
            daterange[1], ]
        if (0 %in% colSums(pres2)) {
            pres2 <- pres2[, -c(which(colSums(pres2) == 0))]
            ids <- colnames(pres2)
            pres <- pres[, c("Date", ids)]
        }
        startval <- as.numeric(eloobject$misc["startvalue"])
        kval <- as.numeric(eloobject$misc["k"])
        init <- as.character(eloobject$misc["init"])
        eloobject <- elo.seq(xd$winner, xd$loser, xd$Date, draw = xd$draw, 
            presence = pres, startvalue = startval, k = kval, 
            init = init, progressbar = F, runcheck = F)
        mat <- creatematrix(eloobject, drawmethod = "omit")
        if (length(intersect(colnames(pres2), colnames(mat))) < 
            length(colnames(pres2))) {
            add <- colnames(pres2)[which(!colnames(pres2) %in% 
                colnames(mat))]
            for (i in 1:length(add)) {
                mat <- cbind(mat, 0)
                colnames(mat)[ncol(mat)] <- add[i]
                mat <- rbind(mat, 0)
                rownames(mat)[nrow(mat)] <- add[i]
            }
        }
        mat2 <- mat
        co <- cbind(t(combn(colnames(mat), 2)), NA)
        for (i in 1:nrow(co)) {
            if (max(rowSums(pres[, co[i, 1:2]])) < 2) {
                mat2[co[i, 1], co[i, 2]] <- mat2[co[i, 2], co[i, 
                  1]] <- NA
            }
        }
        res <- mat[upper.tri(mat, diag = FALSE)] + t(mat)[upper.tri(t(mat), 
            diag = FALSE)]
        N <- length(res)
        pu <- length(which(res == 0))/N
        res <- na.omit(mat2[upper.tri(mat2, diag = FALSE)] + 
            t(mat2)[upper.tri(t(mat2), diag = FALSE)])
        N2 <- length(res)
        pup <- length(which(res == 0))/N2
        res <- c(round(pu, 3), N, round(pup, 3), N2)
        names(res) <- c("pu.all", "dyads.all", "pu.cores", "dyads.cores")
    }
    if (class(eloobject) == "matrix") {
        up <- eloobject[upper.tri(eloobject)]
        lo <- t(eloobject)[upper.tri(eloobject)]
        res <- c(round(sum(up + lo == 0)/length(lo), 3), length(lo), 
            NA, NA)
        names(res) <- c("pu.all", "dyads.all", "pu.cores", "dyads.cores")
    }
    return(res)
}
<bytecode: 0x556709bd26d8>
<environment: namespace:EloRating>
 --- function search by body ---
Function prunk in namespace EloRating has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1