Error(s) in re-building vignettes:
  ...
--- re-building 'gamma_imputation_Jackson_2014.Rnw' using knitr
Loading required package: survival

Attaching package: 'InformativeCensoring'

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

    cox.zph

--- finished re-building 'gamma_imputation_Jackson_2014.Rnw'

--- re-building 'risk_score_imputation_Hsu_2009.Rnw' using knitr

Attaching package: 'InformativeCensoring'

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

    cox.zph

 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
InformativeCensoring
 --- call from context --- 
.Testsurvdiff(object, formula, rho = 0, method = "logrank", ...)
 --- call from argument --- 
if (class(model$obs) == "matrix") sum(model$obs[2, ] - model$exp[2, 
    ]) else (model$obs[2] - model$exp[2])
 --- R stacktrace ---
where 1: .Testsurvdiff(object, formula, rho = 0, method = "logrank", ...)
where 2: switch(method, logrank = .Testlogrank, Wilcoxon = .Testwilcoxon, 
    Cox = .Testcox, exponential = .TestExponential, weibull = .TestWeibull, 
    function(object, formula, ...) {
        stop("Unknown test type")
    })(object, formula, ...)
where 3: .imputeStat.internal(object, method, formula, ...)
where 4: ImputeStat.ScoreImputedData(ExtractSingle(object, x), method = method, 
    formula = formula, ...)
where 5: ImputeStat(ExtractSingle(object, x), method = method, formula = formula, 
    ...)
where 6: FUN(X[[i]], ...)
where 7: lapply(seq_len(object$m), extract_stat, method, formula)
where 8: .internalImputeStatset(object, method, formula, ..., parallel = parallel, 
    ncpus = ncpus, cl = cl)
where 9: ImputeStat.ScoreImputedSet(imputed.data.sets, method = "logrank", 
    formula = ~arm + strata(Z1, Z3))
where 10: ImputeStat(imputed.data.sets, method = "logrank", formula = ~arm + 
    strata(Z1, Z3))
where 11: eval(expr, envir, enclos)
where 12: eval(expr, envir, enclos)
where 13: withVisible(eval(expr, envir, enclos))
where 14: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 15: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 16: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 17: 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 18: evaluate::evaluate(...)
where 19: 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 20: 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 21: block_exec(params)
where 22: call_block(x)
where 23: process_group.block(group)
where 24: process_group(group)
where 25: 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 26: process_file(text, output)
where 27: (if (grepl("\\.[Rr]md$", file)) knit2html_v1 else if (grepl("\\.[Rr]rst$", 
    file)) knit2pandoc else knit)(file, encoding = encoding, 
    quiet = quiet, envir = globalenv(), ...)
where 28: engine$weave(file, quiet = quiet, encoding = enc)
where 29: doTryCatch(return(expr), name, parentenv, handler)
where 30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 31: tryCatchList(expr, classes, parentenv, handlers)
where 32: 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 33: tools:::.buildOneVignette("risk_score_imputation_Hsu_2009.Rnw", 
    "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/InformativeCensoring.Rcheck/vign_test/InformativeCensoring", 
    TRUE, FALSE, "risk_score_imputation_Hsu_2009", "", "/tmp/RtmpLcls3a/file64327c5638a2.rds")

 --- value of length: 2 type: logical ---
[1]  TRUE FALSE
 --- function from context --- 
function (object, formula, rho, method, ...) 
{
    model <- survdiff(formula = formula, data = object$data, 
        rho = rho, ...)
    list(model = model, method = paste(method, "(estimator for O-E)"), 
        estimate = if (class(model$obs) == "matrix") sum(model$obs[2, 
            ] - model$exp[2, ]) else (model$obs[2] - model$exp[2]), 
        var = model$var[2, 2])
}
<bytecode: 0xb89f4d0>
<environment: namespace:InformativeCensoring>
 --- function search by body ---
Function .Testsurvdiff in namespace InformativeCensoring has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1
SUMMARY: processing the following file failed:
  'risk_score_imputation_Hsu_2009.Rnw'

Error: Vignette re-building failed.
Execution halted