• using R version 4.5.1 (2025-06-13)
  • using platform: x86_64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.3.1
  • using session charset: UTF-8
  • checking for file ‘eudract/DESCRIPTION’ ... OK
  • checking extension type ... Package
  • this is package ‘eudract’ version ‘1.1.0’
  • 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 ‘eudract’ can be installed ... [5s/6s] OK See the install log for details.
  • 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 code files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... [1s/1s] OK
  • checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the package can be unloaded cleanly ... [1s/1s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
  • checking loading without being on the library search path ... [1s/1s] 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 ... [4s/4s] OK
  • checking Rd files ... [0s/0s] 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 ... [0s/0s] OK
  • checking LazyData ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking sizes of PDF files under ‘inst/doc’ ... OK
  • checking installed files from ‘inst/doc’ ... OK
  • checking files in ‘vignettes’ ... OK
  • checking examples ... [2s/2s] 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/RtmpuF4RWB/file17d383a281010.xml' is created or modified > eudract_convert(input=simple, + output=eudract) '/Volumes/Temp/tmp/RtmpuF4RWB/file17d381c36a844.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/RtmpuF4RWB/file17d38486116d4.xml' is created or modified  *** caught segfault *** address 0x64b046044728, 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 ...
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [3s/3s] 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 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 ...
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [20s/27s] OK
  • checking PDF version of manual ... [7s/13s] OK
  • DONE Status: 2 ERRORs
  • using check arguments '--no-clean-on-error '