* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/pinbasic.Rcheck’ * using R Under development (unstable) (2022-04-26 r82260) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘pinbasic/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘pinbasic’ version ‘1.2.2’ * 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 ‘pinbasic’ can be installed ... [52s/93s] 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 ... [16s/54s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [10s/19s] ERROR Error(s) in re-building vignettes: --- re-building ‘pinbasicVignette.Rmd’ using rmarkdown pin_ll(param = NULL, numbuys = NULL, numsells = NULL, factorization = "Lin_Ke") initial_vals(numbuys = NULL, numsells = NULL, method = "HAC", length = 5, num_clust = 5, details = FALSE) ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- pinbasic --- call from context --- ggplot.posterior(post_third) --- call from argument --- !is.null(rownames(x)) && is.na(check_rows) --- R stacktrace --- where 1: ggplot.posterior(post_third) where 2: ggplot(post_third) where 3: eval(expr, envir, enclos) where 4: eval(expr, envir, enclos) where 5: eval_with_user_handlers(expr, envir, enclos, user_handlers) where 6: withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)) where 7: withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler) where 8: handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler)) where 9: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler))) where 10: 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 11: evaluate::evaluate(...) where 12: 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 13: in_dir(input_dir(), expr) where 14: 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 15: eng_r(options) where 16: block_exec(params) where 17: call_block(x) where 18: process_group.block(group) where 19: process_group(group) where 20: 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 21: process_file(text, output) where 22: knit(..., tangle = opts_knit$get("tangle"), envir = envir) where 23: FUN(X[[i]], ...) where 24: lapply(sc_split(params$child), knit_child, options = block$params) where 25: call_block(x) where 26: process_group.block(group) where 27: process_group(group) where 28: 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 29: process_file(text, output) where 30: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet) where 31: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...) where 32: vweave_rmarkdown(...) where 33: engine$weave(file, quiet = quiet, encoding = enc) where 34: doTryCatch(return(expr), name, parentenv, handler) where 35: tryCatchOne(expr, names, parentenv, handlers[[1L]]) where 36: tryCatchList(expr, classes, parentenv, handlers) where 37: 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 38: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-LENGTH1/pinbasic.Rcheck/vign_test/pinbasic") --- value of length: 66 type: logical --- [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [25] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [37] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [49] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [61] FALSE FALSE FALSE FALSE FALSE FALSE --- function from context --- function (x) { if (is.null(rownames(x))) { df <- data.frame(bs_date = 1:nrow(x), no = x[, "no"], good = x[, "good"], bad = x[, "bad"]) } else { check_rows <- check_bs_dates(rownames(x)) if (!all(is.na(check_rows))) { df <- data.frame(bs_date = as.Date(rownames(x)), no = x[, "no"], good = x[, "good"], bad = x[, "bad"]) } if (!is.null(rownames(x)) && is.na(check_rows)) { df <- data.frame(bs_date = rownames(x), no = x[, "no"], good = x[, "good"], bad = x[, "bad"]) } } df_melt <- melt(df, id = "bs_date") dp_plot <- ggplot(df_melt, aes(x = bs_date, y = value, fill = variable)) + geom_bar(stat = "identity", position = "fill", width = 0.5) + ylab("Posterior Probabilities \n of Trading Days' Conditions") + scale_fill_discrete(breaks = c("no", "good", "bad"), labels = c("no-news", "good-news", "bad-news"), guide = guide_legend(nrow = 1, keywidth = 0.5, keyheight = 0.5, title = NULL, label.position = "right")) + theme(axis.title.x = element_blank(), legend.position = "bottom") dp_plot } --- function search by body --- Function ggplot.posterior in namespace pinbasic 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/pinbasic.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 5:40.36, 129.73 + 13.43