* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/cheatR.Rcheck’ * using R Under development (unstable) (2022-04-13 r82166) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘cheatR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘cheatR’ version ‘1.2.1-1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘cheatR’ can be installed ... OK * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [11s/12s] ERROR Error(s) in re-building vignettes: --- re-building ‘using-cheatR.Rmd’ using rmarkdown ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- tidygraph --- call from context --- guess_matrix_type(x) --- call from argument --- (is.null(rownames(x)) && is.null(colnames(x))) || colnames(x) == rownames(x) --- R stacktrace --- where 1: guess_matrix_type(x) where 2: as_tbl_graph.matrix(.) where 3: tidygraph::as_tbl_graph(.) where 4: x %>% tidygraph::as_tbl_graph() where 5: activate(lhs, "edges") where 6: x %>% tidygraph::as_tbl_graph() %E>% tidygraph::filter(!is.na(.data$weight), .data$weight >= weight_range[1], .data$weight <= weight_range[2]) where 7: plot.chtrs(results, weight_range = c(0.7, 1), remove_lonely = FALSE) where 8: plot(results, weight_range = c(0.7, 1), remove_lonely = FALSE) where 9: eval(expr, envir, enclos) where 10: eval(expr, envir, enclos) where 11: eval_with_user_handlers(expr, envir, enclos, user_handlers) where 12: withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)) where 13: withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler) where 14: handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler)) where 15: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler))) where 16: 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 17: evaluate::evaluate(...) where 18: evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message), stop_on_error = if (is.numeric(options$error)) options$error else { if (options$error && options$include) 0L else 2L }, output_handler = knit_handlers(options$render, options)) where 19: in_dir(input_dir(), expr) where 20: in_input_dir(evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message), stop_on_error = if (is.numeric(options$error)) options$error else { if (options$error && options$include) 0L else 2L }, output_handler = knit_handlers(options$render, options))) where 21: eng_r(options) where 22: block_exec(params) where 23: call_block(x) where 24: process_group.block(group) where 25: process_group(group) where 26: 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 27: process_file(text, output) where 28: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet) where 29: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...) where 30: vweave_rmarkdown(...) where 31: engine$weave(file, quiet = quiet, encoding = enc) where 32: doTryCatch(return(expr), name, parentenv, handler) where 33: tryCatchOne(expr, names, parentenv, handlers[[1L]]) where 34: tryCatchList(expr, classes, parentenv, handlers) where 35: 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 36: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-LENGTH1/cheatR.Rcheck/vign_test/cheatR") --- value of length: 4 type: logical --- [1] TRUE TRUE TRUE TRUE --- function from context --- function (x) { if (nrow(x) == ncol(x) && mode(x) %in% c("numeric", "integer") && ((is.null(rownames(x)) && is.null(colnames(x))) || colnames(x) == rownames(x))) { "adjacency" } else if (ncol(x) == 2) { "edgelist" } else if (mode(x) %in% c("numeric", "integer")) { "incidence" } else { "uknown" } } --- function search by body --- Function guess_matrix_type in namespace tidygraph has this body. ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/cheatR.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:14.07, 57.61 + 8.14