* using log directory ‘/Users/ripley/R/packages/tests-Accelerate/textmineR.Rcheck’ * using R Under development (unstable) (2023-09-17 r85158) * using platform: aarch64-apple-darwin22.6.0 * R was compiled by Apple clang version 15.0.0 (clang-1500.0.40.1) GNU Fortran (GCC) 12.2.0 * running under: macOS Ventura 13.5.2 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘textmineR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘textmineR’ version ‘3.0.5’ * 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 ‘textmineR’ can be installed ... [20s/20s] OK * used C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.0.40.1)’ * used SDK: ‘MacOSX14.0.sdk’ * checking C++ specification ... NOTE Specified C++11: please drop specification unless essential * checking installed package size ... 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 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 line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... 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 ‘tests’ ... OK * checking tests ... Running ‘spelling.R’ Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [46s/44s] ERROR Error(s) in re-building vignettes: --- re-building ‘a_start_here.Rmd’ using rmarkdown --- finished re-building ‘a_start_here.Rmd’ --- re-building ‘b_document_clustering.Rmd’ using rmarkdown --- finished re-building ‘b_document_clustering.Rmd’ --- re-building ‘c_topic_modeling.Rmd’ using rmarkdown *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: CalcGamma(phi = phi, theta = theta, p_docs = Matrix::rowSums(dtm)) 2: FitLdaModel(dtm = nih_sample_dtm, k = k, iterations = 200, burnin = 180, alpha = 0.1, beta = colSums(nih_sample_dtm)/sum(nih_sample_dtm) * 100, optimize_alpha = TRUE, calc_likelihood = FALSE, calc_coherence = TRUE, calc_r2 = FALSE, cpus = 1) 3: FUN(X[[i]], ...) 4: lapply(X = S, FUN = FUN, ...) 5: doTryCatch(return(expr), name, parentenv, handler) 6: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7: tryCatchList(expr, classes, parentenv, handlers) 8: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 9: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 10: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 11: FUN(X[[i]], ...) 12: lapply(seq_len(cores), inner.do) 13: parallel::mclapply(X = X, FUN = FUN, mc.cores = cpus) 14: TmParallelApply(X = k_list, FUN = function(k) { m <- FitLdaModel(dtm = nih_sample_dtm, k = k, iterations = 200, burnin = 180, alpha = 0.1, beta = colSums(nih_sample_dtm)/sum(nih_sample_dtm) * 100, optimize_alpha = TRUE, calc_likelihood = FALSE, calc_coherence = TRUE, calc_r2 = FALSE, cpus = 1) m$k <- k m}, export = ls(), cpus = 2) 15: eval(expr, envir, enclos) 16: eval(expr, envir, enclos) 17: eval_with_user_handlers(expr, envir, enclos, user_handlers) 18: withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)) 19: withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler) 20: handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler)) 21: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler))) 22: 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, log_echo = log_echo, log_warning = log_warning, output_handler = output_handler, include_timing = include_timing) 23: evaluate::evaluate(...) 24: evaluate(code, envir = env, new_device = FALSE, keep_warning = if (is.numeric(options$warning)) TRUE else options$warning, keep_message = if (is.numeric(options$message)) TRUE else 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)) 25: in_dir(input_dir(), expr) 26: in_input_dir(evaluate(code, envir = env, new_device = FALSE, keep_warning = if (is.numeric(options$warning)) TRUE else options$warning, keep_message = if (is.numeric(options$message)) TRUE else 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))) 27: eng_r(options) 28: block_exec(params) 29: call_block(x) 30: process_group.block(group) 31: process_group(group) 32: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) if (xfun::pkg_available("rlang", "1.0.0")) rlang::entrace(e)) 33: withCallingHandlers(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) if (xfun::pkg_available("rlang", "1.0.0")) rlang::entrace(e)), error = function(e) { setwd(wd) write_utf8(res, output %n% stdout()) message("\nQuitting from lines ", paste(current_lines(i), collapse = "-"), if (labels[i] != "") sprintf(" [%s]", labels[i]), sprintf(" (%s)", knit_concord$get("infile"))) }) 34: process_file(text, output) 35: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet) 36: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...) 37: vweave_rmarkdown(...) 38: engine$weave(file, quiet = quiet, encoding = enc) 39: doTryCatch(return(expr), name, parentenv, handler) 40: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 41: tryCatchList(expr, classes, parentenv, handlers) 42: 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)))}) 43: tools:::.buildOneVignette("c_topic_modeling.Rmd", "/Users/ripley/R/packages/tests-Accelerate/textmineR.Rcheck/vign_test/textmineR", TRUE, FALSE, "c_topic_modeling", "UTF-8", "/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T//RtmpSB9DOf/working_dir/Rtmpj291yM/file41a322d0868.rds") An irrecoverable exception occurred. R is aborting now ... *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: CalcGamma(phi = phi, theta = theta, p_docs = Matrix::rowSums(dtm)) 2: FitLdaModel(dtm = nih_sample_dtm, k = k, iterations = 200, burnin = 180, alpha = 0.1, beta = colSums(nih_sample_dtm)/sum(nih_sample_dtm) * 100, optimize_alpha = TRUE, calc_likelihood = FALSE, calc_coherence = TRUE, calc_r2 = FALSE, cpus = 1) 3: FUN(X[[i]], ...) 4: lapply(X = S, FUN = FUN, ...) 5: doTryCatch(return(expr), name, parentenv, handler) 6: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7: tryCatchList(expr, classes, parentenv, handlers) 8: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 9: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 10: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 11: FUN(X[[i]], ...) 12: lapply(seq_len(cores), inner.do) 13: parallel::mclapply(X = X, FUN = FUN, mc.cores = cpus) 14: TmParallelApply(X = k_list, FUN = function(k) { m <- FitLdaModel(dtm = nih_sample_dtm, k = k, iterations = 200, burnin = 180, alpha = 0.1, beta = colSums(nih_sample_dtm)/sum(nih_sample_dtm) * 100, optimize_alpha = TRUE, calc_likelihood = FALSE, calc_coherence = TRUE, calc_r2 = FALSE, cpus = 1) m$k <- k m}, export = ls(), cpus = 2) 15: eval(expr, envir, enclos) 16: eval(expr, envir, enclos) 17: eval_with_user_handlers(expr, envir, enclos, user_handlers) 18: withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)) 19: withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler) 20: handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler)) 21: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval_with_user_handlers(expr, envir, enclos, user_handlers)), warning = wHandler, error = eHandler, message = mHandler))) 22: 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, log_echo = log_echo, log_warning = log_warning, output_handler = output_handler, include_timing = include_timing) 23: evaluate::evaluate(...) 24: evaluate(code, envir = env, new_device = FALSE, keep_warning = if (is.numeric(options$warning)) TRUE else options$warning, keep_message = if (is.numeric(options$message)) TRUE else 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)) 25: in_dir(input_dir(), expr) 26: in_input_dir(evaluate(code, envir = env, new_device = FALSE, keep_warning = if (is.numeric(options$warning)) TRUE else options$warning, keep_message = if (is.numeric(options$message)) TRUE else 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))) 27: eng_r(options) 28: block_exec(params) 29: call_block(x) 30: process_group.block(group) 31: process_group(group) 32: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) if (xfun::pkg_available("rlang", "1.0.0")) rlang::entrace(e)) 33: withCallingHandlers(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) if (xfun::pkg_available("rlang", "1.0.0")) rlang::entrace(e)), error = function(e) { setwd(wd) write_utf8(res, output %n% stdout()) message("\nQuitting from lines ", paste(current_lines(i), collapse = "-"), if (labels[i] != "") sprintf(" [%s]", labels[i]), sprintf(" (%s)", knit_concord$get("infile"))) }) 34: process_file(text, output) 35: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet) 36: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...) 37: vweave_rmarkdown(...) 38: engine$weave(file, quiet = quiet, encoding = enc) 39: doTryCatch(return(expr), name, parentenv, handler) 40: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 41: tryCatchList(expr, classes, parentenv, handlers) 42: 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)))}) 43: tools:::.buildOneVignette("c_topic_modeling.Rmd", "/Users/ripley/R/packages/tests-Accelerate/textmineR.Rcheck/vign_test/textmineR", TRUE, FALSE, "c_topic_modeling", "UTF-8", "/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T//RtmpSB9DOf/working_dir/Rtmpj291yM/file41a322d0868.rds") An irrecoverable exception occurred. R is aborting now ... Quitting from lines 415-462 [unnamed-chunk-25] (c_topic_modeling.Rmd) Error: processing vignette 'c_topic_modeling.Rmd' failed with diagnostics: arguments imply differing number of rows: 0, 6 --- failed re-building ‘c_topic_modeling.Rmd’ --- re-building ‘d_text_embeddings.Rmd’ using rmarkdown --- finished re-building ‘d_text_embeddings.Rmd’ --- re-building ‘e_doc_summarization.Rmd’ using rmarkdown --- finished re-building ‘e_doc_summarization.Rmd’ --- re-building ‘f_tidytext_example.Rmd’ using rmarkdown --- finished re-building ‘f_tidytext_example.Rmd’ SUMMARY: processing the following file failed: ‘c_topic_modeling.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/Users/ripley/R/packages/tests-Accelerate/textmineR.Rcheck/00check.log’ for details. 96.93 real 91.58 user 6.48 sys