Last updated on 2026-01-12 19:50:20 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.5 | 7.20 | 99.51 | 106.71 | NOTE | |
| r-devel-linux-x86_64-debian-gcc | 1.1.0 | 5.23 | 72.98 | 78.21 | OK | |
| r-devel-linux-x86_64-fedora-clang | 1.1.0 | 12.00 | 172.95 | 184.95 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.1.0 | 13.00 | 181.50 | 194.50 | OK | |
| r-devel-windows-x86_64 | 1.1.0 | 10.00 | 106.00 | 116.00 | OK | |
| r-patched-linux-x86_64 | 1.0.5 | 7.80 | 92.43 | 100.23 | OK | |
| r-release-linux-x86_64 | 1.1.0 | 7.23 | 94.67 | 101.90 | OK | |
| r-release-macos-arm64 | 1.1.0 | 2.00 | 23.00 | 25.00 | ERROR | |
| r-release-macos-x86_64 | 1.1.0 | 5.00 | 82.00 | 87.00 | ERROR | |
| r-release-windows-x86_64 | 1.0.5 | 11.00 | 102.00 | 113.00 | OK | |
| r-oldrel-macos-arm64 | 1.1.0 | 2.00 | 28.00 | 30.00 | ERROR | |
| r-oldrel-macos-x86_64 | 1.1.0 | 5.00 | 165.00 | 170.00 | ERROR | |
| r-oldrel-windows-x86_64 | 1.1.0 | 12.00 | 133.00 | 145.00 | OK |
Version: 1.0.5
Check: relative paths in package URLs
Result: NOTE
Found the following (possibly) invalid URLs:
URL: ../extdata/safety_upload.xml
From: inst/doc/eudract.html
URL: ../extdata/ct_safety_upload.xml
From: inst/doc/eudract.html
URL: ../extdata/ct_result_0004-000245-38.pdf
From: inst/doc/eudract.html
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.1.0
Check: examples
Result: ERROR
Running examples in ‘eudract-Ex.R’ failed
The error most likely occurred in:
> ### Name: clintrials_gov_convert
> ### Title: applies a conversion using xslt from a simple xml file to a
> ### ClinicalTrials.gov compatible file, and checks against the schema
> ### Aliases: clintrials_gov_convert
>
> ### ** Examples
>
> safety_statistics <- safety_summary(safety,
+ exposed=c("Experimental"=60,"Control"=67))
> simple <- tempfile(fileext = ".xml")
> eudract <- tempfile(fileext = ".xml")
> ct <- tempfile(fileext = ".xml")
> simple_safety_xml(safety_statistics, simple)
'/Volumes/Temp/tmp/RtmpA10ly8/file1335c757343f0.xml' is created or modified
> eudract_convert(input=simple,
+ output=eudract)
'/Volumes/Temp/tmp/RtmpA10ly8/file1335c62717dcd.xml' is created or modified
Please email cuh.cctu@nhs.net to tell us if you have successfully uploaded a study to EudraCT.
This is to allow us to measure the impact of this tool.
> clintrials_gov_convert(input=simple,
+ original=system.file("extdata", "1234.xml", package ="eudract"),
+ output=ct)
'/Volumes/Temp/tmp/RtmpA10ly8/file1335c8fa5039.xml' is created or modified
*** caught segfault ***
address 0x56941bf12048, cause 'invalid permissions'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-arm64
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(eudract)
>
> test_check("eudract")
*** caught segfault ***
address 0x5707f1e52048, cause 'invalid permissions'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml"))
4: eval(code, test_env)
5: eval(code, test_env)
6: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
14: test_code(code, parent.frame())
15: test_that("convert to ClinicalTrials.Gov", { clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml")) new <- read_xml(file.path(path, "table_ct.xml")) ref <- read_xml(file.path(reference_path, "table_ct.xml")) expect_equal(new, ref) if (Sys.getenv("ct_user") == "" | Sys.getenv("ct_pass") == "") { skip("Need to have the userid/password as environment variables") } output <- clintrials_gov_upload(input = file.path(path, "simple.xml"), backup = file.path(path, "bak_study_file.xml"), output = file.path(path, "study_file.xml"), orgname = "AddenbrookesH", username = Sys.getenv("ct_user"), password = Sys.getenv("ct_pass"), studyid = "1234", url = "https://prstest.clinicaltrials.gov/") expect_equal(names(output), c("download", "upload"))})
16: eval(code, test_env)
17: eval(code, test_env)
18: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
23: doWithOneRestart(return(expr), restart)
24: withOneRestart(expr, restarts[[1L]])
25: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
26: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
27: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
28: FUN(X[[i]], ...)
29: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
34: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
35: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
36: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
37: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
38: test_check("eudract")
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-arm64
Version: 1.1.0
Check: examples
Result: ERROR
Running examples in ‘eudract-Ex.R’ failed
The error most likely occurred in:
> ### Name: clintrials_gov_convert
> ### Title: applies a conversion using xslt from a simple xml file to a
> ### ClinicalTrials.gov compatible file, and checks against the schema
> ### Aliases: clintrials_gov_convert
>
> ### ** Examples
>
> safety_statistics <- safety_summary(safety,
+ exposed=c("Experimental"=60,"Control"=67))
> simple <- tempfile(fileext = ".xml")
> eudract <- tempfile(fileext = ".xml")
> ct <- tempfile(fileext = ".xml")
> simple_safety_xml(safety_statistics, simple)
'/Volumes/Temp/tmp/Rtmp0w39o8/file8ae12d6193db.xml' is created or modified
> eudract_convert(input=simple,
+ output=eudract)
'/Volumes/Temp/tmp/Rtmp0w39o8/file8ae161322623.xml' is created or modified
Please email cuh.cctu@nhs.net to tell us if you have successfully uploaded a study to EudraCT.
This is to allow us to measure the impact of this tool.
> clintrials_gov_convert(input=simple,
+ original=system.file("extdata", "1234.xml", package ="eudract"),
+ output=ct)
'/Volumes/Temp/tmp/Rtmp0w39o8/file8ae12365f5af.xml' is created or modified
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-x86_64
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(eudract)
>
> test_check("eudract")
*** caught segfault ***
address 0x6e22bf8b6528, cause 'memory not mapped'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml"))
4: eval(code, test_env)
5: eval(code, test_env)
6: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
14: test_code(code, parent.frame())
15: test_that("convert to ClinicalTrials.Gov", { clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml")) new <- read_xml(file.path(path, "table_ct.xml")) ref <- read_xml(file.path(reference_path, "table_ct.xml")) expect_equal(new, ref) if (Sys.getenv("ct_user") == "" | Sys.getenv("ct_pass") == "") { skip("Need to have the userid/password as environment variables") } output <- clintrials_gov_upload(input = file.path(path, "simple.xml"), backup = file.path(path, "bak_study_file.xml"), output = file.path(path, "study_file.xml"), orgname = "AddenbrookesH", username = Sys.getenv("ct_user"), password = Sys.getenv("ct_pass"), studyid = "1234", url = "https://prstest.clinicaltrials.gov/") expect_equal(names(output), c("download", "upload"))})
16: eval(code, test_env)
17: eval(code, test_env)
18: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
23: doWithOneRestart(return(expr), restart)
24: withOneRestart(expr, restarts[[1L]])
25: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
26: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
27: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
28: FUN(X[[i]], ...)
29: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
34: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
35: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
36: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
37: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
38: test_check("eudract")
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-x86_64
Version: 1.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
sh: line 1: 36247 Segmentation fault: 11 '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla --no-echo > '/Volumes/Temp/tmp/RtmpPV21Gf/file8b6157fea79e' 2>&1 < '/Volumes/Temp/tmp/RtmpPV21Gf/file8b61faea334'
--- re-building ‘eudract.Rmd’ using rmarkdown
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct_upload_file)
4: eval(expr, envir)
5: eval(expr, envir)
6: withVisible(eval(expr, envir))
7: withCallingHandlers(code, error = function (e) rlang::entrace(e), message = function (cnd) { watcher$capture_plot_and_output() if (on_message$capture) { watcher$push(cnd) } if (on_message$silence) { invokeRestart("muffleMessage") }}, warning = function (cnd) { if (getOption("warn") >= 2 || getOption("warn") < 0) { return() } watcher$capture_plot_and_output() if (on_warning$capture) { cnd <- sanitize_call(cnd) watcher$push(cnd) } if (on_warning$silence) { invokeRestart("muffleWarning") }}, error = function (cnd) { watcher$capture_plot_and_output() cnd <- sanitize_call(cnd) watcher$push(cnd) switch(on_error, continue = invokeRestart("eval_continue"), stop = invokeRestart("eval_stop"), error = NULL)})
8: eval(call)
9: eval(call)
10: with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestartList(expr, restarts[-nr])
14: doWithOneRestart(return(expr), restart)
15: withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
16: withRestartList(expr, restarts)
17: withRestarts(with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers), eval_continue = function() TRUE, eval_stop = function() FALSE)
18: evaluate::evaluate(...)
19: 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))
20: in_dir(input_dir(), expr)
21: 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)))
22: eng_r(options)
23: block_exec(params)
24: call_block(x)
25: process_group(group)
26: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) })
27: with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global()))
28: xfun:::handle_error(with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global())), function(loc) { setwd(wd) write_utf8(res, output %n% stdout()) paste0("\nQuitting from ", loc, if (!is.null(error)) paste0("\n", rule(), error, "\n", rule()))}, if (labels[i] != "") sprintf(" [%s]", labels[i]), get_loc)
29: process_file(text, output)
30: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
31: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...)
32: vweave_rmarkdown(...)
33: engine$weave(file, quiet = quiet, encoding = enc)
34: doTryCatch(return(expr), name, parentenv, handler)
35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
36: tryCatchList(expr, classes, parentenv, handlers)
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) }}, error = function(e) { OK <<- FALSE message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", file, conditionMessage(e)))})
38: tools:::.buildOneVignette("eudract.Rmd", "/Volumes/Builds/packages/big-sur-x86_64/results/4.5/eudract.Rcheck/vign_test/eudract", TRUE, FALSE, "eudract", "UTF-8", "/Volumes/Temp/tmp/RtmpPV21Gf/file8b615983bd43.rds")
An irrecoverable exception occurred. R is aborting now ...
--- re-building ‘standard_reporting.Rmd’ using rmarkdown
--- finished re-building ‘standard_reporting.Rmd’
SUMMARY: processing the following file failed:
‘eudract.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-release-macos-x86_64
Version: 1.1.0
Check: examples
Result: ERROR
Running examples in ‘eudract-Ex.R’ failed
The error most likely occurred in:
> ### Name: clintrials_gov_convert
> ### Title: applies a conversion using xslt from a simple xml file to a
> ### ClinicalTrials.gov compatible file, and checks against the schema
> ### Aliases: clintrials_gov_convert
>
> ### ** Examples
>
> safety_statistics <- safety_summary(safety,
+ exposed=c("Experimental"=60,"Control"=67))
> simple <- tempfile(fileext = ".xml")
> eudract <- tempfile(fileext = ".xml")
> ct <- tempfile(fileext = ".xml")
> simple_safety_xml(safety_statistics, simple)
'/Volumes/Temp/tmp/RtmpzOUtCD/file1613b828c3fe.xml' is created or modified
> eudract_convert(input=simple,
+ output=eudract)
'/Volumes/Temp/tmp/RtmpzOUtCD/file1613b2c5b5ce1.xml' is created or modified
Please email cuh.cctu@nhs.net to tell us if you have successfully uploaded a study to EudraCT.
This is to allow us to measure the impact of this tool.
> clintrials_gov_convert(input=simple,
+ original=system.file("extdata", "1234.xml", package ="eudract"),
+ output=ct)
'/Volumes/Temp/tmp/RtmpzOUtCD/file1613b222ece87.xml' is created or modified
*** caught segfault ***
address 0xf73dd3e02048, cause 'invalid permissions'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-arm64
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(eudract)
>
> test_check("eudract")
*** caught segfault ***
address 0x521c4660a048, cause 'invalid permissions'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml"))
4: eval(code, test_env)
5: eval(code, test_env)
6: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
14: test_code(code, parent.frame())
15: test_that("convert to ClinicalTrials.Gov", { clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml")) new <- read_xml(file.path(path, "table_ct.xml")) ref <- read_xml(file.path(reference_path, "table_ct.xml")) expect_equal(new, ref) if (Sys.getenv("ct_user") == "" | Sys.getenv("ct_pass") == "") { skip("Need to have the userid/password as environment variables") } output <- clintrials_gov_upload(input = file.path(path, "simple.xml"), backup = file.path(path, "bak_study_file.xml"), output = file.path(path, "study_file.xml"), orgname = "AddenbrookesH", username = Sys.getenv("ct_user"), password = Sys.getenv("ct_pass"), studyid = "1234", url = "https://prstest.clinicaltrials.gov/") expect_equal(names(output), c("download", "upload"))})
16: eval(code, test_env)
17: eval(code, test_env)
18: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
23: doWithOneRestart(return(expr), restart)
24: withOneRestart(expr, restarts[[1L]])
25: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
26: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
27: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
28: FUN(X[[i]], ...)
29: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
34: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
35: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
36: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
37: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
38: test_check("eudract")
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-arm64
Version: 1.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
sh: line 1: 93682 Segmentation fault: 11 '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla --no-echo > '/Volumes/Temp/tmp/RtmpczD8xE/file164815895fac0' 2>&1 < '/Volumes/Temp/tmp/RtmpczD8xE/file164815e8180af'
--- re-building ‘eudract.Rmd’ using rmarkdown
*** caught segfault ***
address 0xa2083684dfe8, cause 'invalid permissions'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct_upload_file)
4: eval(expr, envir)
5: eval(expr, envir)
6: withVisible(eval(expr, envir))
7: withCallingHandlers(code, error = function (e) rlang::entrace(e), message = function (cnd) { watcher$capture_plot_and_output() if (on_message$capture) { watcher$push(cnd) } if (on_message$silence) { invokeRestart("muffleMessage") }}, warning = function (cnd) { if (getOption("warn") >= 2 || getOption("warn") < 0) { return() } watcher$capture_plot_and_output() if (on_warning$capture) { cnd <- sanitize_call(cnd) watcher$push(cnd) } if (on_warning$silence) { invokeRestart("muffleWarning") }}, error = function (cnd) { watcher$capture_plot_and_output() cnd <- sanitize_call(cnd) watcher$push(cnd) switch(on_error, continue = invokeRestart("eval_continue"), stop = invokeRestart("eval_stop"), error = NULL)})
8: eval(call)
9: eval(call)
10: with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestartList(expr, restarts[-nr])
14: doWithOneRestart(return(expr), restart)
15: withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
16: withRestartList(expr, restarts)
17: withRestarts(with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers), eval_continue = function() TRUE, eval_stop = function() FALSE)
18: evaluate::evaluate(...)
19: 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))
20: in_dir(input_dir(), expr)
21: 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)))
22: eng_r(options)
23: block_exec(params)
24: call_block(x)
25: process_group(group)
26: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) })
27: with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global()))
28: xfun:::handle_error(with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global())), function(loc) { setwd(wd) write_utf8(res, output %n% stdout()) paste0("\nQuitting from ", loc, if (!is.null(error)) paste0("\n", rule(), error, "\n", rule()))}, if (labels[i] != "") sprintf(" [%s]", labels[i]), get_loc)
29: process_file(text, output)
30: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
31: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...)
32: vweave_rmarkdown(...)
33: engine$weave(file, quiet = quiet, encoding = enc)
34: doTryCatch(return(expr), name, parentenv, handler)
35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
36: tryCatchList(expr, classes, parentenv, handlers)
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) }}, error = function(e) { OK <<- FALSE message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", file, conditionMessage(e)))})
38: tools:::.buildOneVignette("eudract.Rmd", "/Volumes/Builds/packages/big-sur-arm64/results/4.4/eudract.Rcheck/vign_test/eudract", TRUE, FALSE, "eudract", "UTF-8", "/Volumes/Temp/tmp/RtmpczD8xE/file164817129745a.rds")
An irrecoverable exception occurred. R is aborting now ...
--- re-building ‘standard_reporting.Rmd’ using rmarkdown
2026-01-13 04:36:26.144 R[93744:285248] XType: Using static font registry.
--- finished re-building ‘standard_reporting.Rmd’
SUMMARY: processing the following file failed:
‘eudract.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-macos-arm64
Version: 1.1.0
Check: examples
Result: ERROR
Running examples in ‘eudract-Ex.R’ failed
The error most likely occurred in:
> ### Name: clintrials_gov_convert
> ### Title: applies a conversion using xslt from a simple xml file to a
> ### ClinicalTrials.gov compatible file, and checks against the schema
> ### Aliases: clintrials_gov_convert
>
> ### ** Examples
>
> safety_statistics <- safety_summary(safety,
+ exposed=c("Experimental"=60,"Control"=67))
> simple <- tempfile(fileext = ".xml")
> eudract <- tempfile(fileext = ".xml")
> ct <- tempfile(fileext = ".xml")
> simple_safety_xml(safety_statistics, simple)
'/Volumes/Temp/tmp/RtmpqDS21v/file6da2967ed70.xml' is created or modified
> eudract_convert(input=simple,
+ output=eudract)
'/Volumes/Temp/tmp/RtmpqDS21v/file6da6615694c.xml' is created or modified
Please email cuh.cctu@nhs.net to tell us if you have successfully uploaded a study to EudraCT.
This is to allow us to measure the impact of this tool.
> clintrials_gov_convert(input=simple,
+ original=system.file("extdata", "1234.xml", package ="eudract"),
+ output=ct)
'/Volumes/Temp/tmp/RtmpqDS21v/file6da7b430f0.xml' is created or modified
*** caught segfault ***
address 0x76d9427dc548, cause 'memory not mapped'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-x86_64
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(eudract)
>
> test_check("eudract")
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml"))
4: eval(code, test_env)
5: eval(code, test_env)
6: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
14: test_code(code, parent.frame())
15: test_that("convert to ClinicalTrials.Gov", { clintrials_gov_convert(input = file.path(path, "simple.xml"), original = file.path(original_path, "1234.xml"), output = file.path(path, "table_ct.xml")) new <- read_xml(file.path(path, "table_ct.xml")) ref <- read_xml(file.path(reference_path, "table_ct.xml")) expect_equal(new, ref) if (Sys.getenv("ct_user") == "" | Sys.getenv("ct_pass") == "") { skip("Need to have the userid/password as environment variables") } output <- clintrials_gov_upload(input = file.path(path, "simple.xml"), backup = file.path(path, "bak_study_file.xml"), output = file.path(path, "study_file.xml"), orgname = "AddenbrookesH", username = Sys.getenv("ct_user"), password = Sys.getenv("ct_pass"), studyid = "1234", url = "https://prstest.clinicaltrials.gov/") expect_equal(names(output), c("download", "upload"))})
16: eval(code, test_env)
17: eval(code, test_env)
18: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
23: doWithOneRestart(return(expr), restart)
24: withOneRestart(expr, restarts[[1L]])
25: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
26: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
27: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
28: FUN(X[[i]], ...)
29: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
34: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
35: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
36: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
37: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
38: test_check("eudract")
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-x86_64
Version: 1.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
sh: line 1: 6431 Segmentation fault: 11 '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla --no-echo > '/Volumes/Temp/tmp/Rtmp6IzWqD/file11ba7ac5e3cb' 2>&1 < '/Volumes/Temp/tmp/Rtmp6IzWqD/file11ba55ee6365'
--- re-building ‘eudract.Rmd’ using rmarkdown
*** caught segfault ***
address 0x2d9722c4a648, cause 'memory not mapped'
Traceback:
1: xml_validate.xml_document(safety, schema_results)
2: xml2::xml_validate(safety, schema_results)
3: clintrials_gov_convert(input = simple, original = system.file("extdata", "1234.xml", package = "eudract"), output = ct_upload_file)
4: eval(expr, envir)
5: eval(expr, envir)
6: withVisible(eval(expr, envir))
7: withCallingHandlers(code, error = function (e) rlang::entrace(e), message = function (cnd) { watcher$capture_plot_and_output() if (on_message$capture) { watcher$push(cnd) } if (on_message$silence) { invokeRestart("muffleMessage") }}, warning = function (cnd) { if (getOption("warn") >= 2 || getOption("warn") < 0) { return() } watcher$capture_plot_and_output() if (on_warning$capture) { cnd <- sanitize_call(cnd) watcher$push(cnd) } if (on_warning$silence) { invokeRestart("muffleWarning") }}, error = function (cnd) { watcher$capture_plot_and_output() cnd <- sanitize_call(cnd) watcher$push(cnd) switch(on_error, continue = invokeRestart("eval_continue"), stop = invokeRestart("eval_stop"), error = NULL)})
8: eval(call)
9: eval(call)
10: with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers)
11: doWithOneRestart(return(expr), restart)
12: withOneRestart(expr, restarts[[1L]])
13: withRestartList(expr, restarts[-nr])
14: doWithOneRestart(return(expr), restart)
15: withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
16: withRestartList(expr, restarts)
17: withRestarts(with_handlers({ for (expr in tle$exprs) { ev <- withVisible(eval(expr, envir)) watcher$capture_plot_and_output() watcher$print_value(ev$value, ev$visible, envir) } TRUE}, handlers), eval_continue = function() TRUE, eval_stop = function() FALSE)
18: evaluate::evaluate(...)
19: 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))
20: in_dir(input_dir(), expr)
21: 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)))
22: eng_r(options)
23: block_exec(params)
24: call_block(x)
25: process_group(group)
26: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) })
27: with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global()))
28: xfun:::handle_error(with_options(withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), error = function(e) { if (progress && is.function(pb$interrupt)) pb$interrupt() if (is_R_CMD_build() || is_R_CMD_check()) error <<- format(e) }), list(rlang_trace_top_env = knit_global())), function(loc) { setwd(wd) write_utf8(res, output %n% stdout()) paste0("\nQuitting from ", loc, if (!is.null(error)) paste0("\n", rule(), error, "\n", rule()))}, if (labels[i] != "") sprintf(" [%s]", labels[i]), get_loc)
29: process_file(text, output)
30: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
31: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), output_dir = getwd(), ...)
32: vweave_rmarkdown(...)
33: engine$weave(file, quiet = quiet, encoding = enc)
34: doTryCatch(return(expr), name, parentenv, handler)
35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
36: tryCatchList(expr, classes, parentenv, handlers)
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) }}, error = function(e) { OK <<- FALSE message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", file, conditionMessage(e)))})
38: tools:::.buildOneVignette("eudract.Rmd", "/Volumes/Builds/packages/big-sur-x86_64/results/4.4/eudract.Rcheck/vign_test/eudract", TRUE, FALSE, "eudract", "UTF-8", "/Volumes/Temp/tmp/Rtmp6IzWqD/file11ba54bfc78c.rds")
An irrecoverable exception occurred. R is aborting now ...
--- re-building ‘standard_reporting.Rmd’ using rmarkdown
--- finished re-building ‘standard_reporting.Rmd’
SUMMARY: processing the following file failed:
‘eudract.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-macos-x86_64