Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(SeaSondeR)
  > 
  > test_check("SeaSondeR")
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  
   *** caught segfault ***
  address 0x1, cause 'invalid permissions'
  
  Traceback:
   1: eigen(C, symmetric = TRUE)
   2: .f(.x[[i]], ...)
   3: .Primitive(".Call")(list(name = "map_impl", address = <pointer: 0x6000025fc700>,     dll = list(name = "purrr", path = "/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/purrr/libs/purrr.so",         dynamicLookup = FALSE, handle = <pointer: 0x76384250>,         info = <pointer: 0x6000001fc180>, forceSymbols = FALSE),     numParameters = 6L), <environment>, "list", FALSE, 4608L,     NULL, 1L)
   4: call_with_cleanup(map_impl, environment(), .type, .progress,     n, names, i)
   5: withCallingHandlers(expr, error = function(cnd) {    if (i == 0L) {    }    else {        message <- c(i = "In index: {i}.")        if (!is.null(names) && !is.na(names[[i]]) && names[[i]] !=             "") {            name <- names[[i]]            message <- c(message, i = "With name: {name}.")        }        else {            name <- NULL        }        cli::cli_abort(message, location = i, name = name, parent = cnd,             call = error_call, class = "purrr_error_indexed")    }})
   6: with_indexed_errors(i = i, names = names, error_call = .purrr_error_call,     call_with_cleanup(map_impl, environment(), .type, .progress,         n, names, i))
   7: map_("list", .x, .f, ..., .progress = .progress)
   8: purrr::map(cov, seasonder_eigen_decomp_C)
   9: .Call(dplyr_mask_eval_all_mutate, quo, private)
  10: eval()
  11: mask$eval_all_mutate(quo)
  12: mutate_col(dots[[i]], data, mask, new_columns)
  13: withCallingHandlers(for (i in seq_along(dots)) {    poke_error_context(dots, i, mask = mask)    context_poke("column", old_current_column)    new_columns <- mutate_col(dots[[i]], data, mask, new_columns)}, error = dplyr_error_handler(dots = dots, mask = mask, bullets = mutate_bullets,     error_call = error_call, error_class = "dplyr:::mutate_error"),     warning = dplyr_warning_handler(state = warnings_state, mask = mask,         error_call = error_call))
  14: mutate_cols(.data, dplyr_quosures(...), by)
  15: mutate.data.frame(., eigen = purrr::map(cov, seasonder_eigen_decomp_C))
  16: dplyr::mutate(., eigen = purrr::map(cov, seasonder_eigen_decomp_C))
  17: MUSIC %<>% dplyr::mutate(eigen = purrr::map(cov, seasonder_eigen_decomp_C))
  18: seasonder_MUSICCovDecomposition(.)
  19: out %<>% seasonder_MUSICCovDecomposition()
  20: seasonder_runMUSIC(.)
  21: out %<>% seasonder_runMUSIC()
  22: seasonder_runMUSICInFOR(seasonder_cs_obj)
  23: eval(code, test_env)
  24: eval(code, test_env)
  25: 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)
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: 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)
  30: doWithOneRestart(return(expr), restart)
  31: withOneRestart(expr, restarts[[1L]])
  32: 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() {    })
  33: test_code(code, parent.frame())
  34: test_that("El fichero exportado coincide con el fichero de referencia",     {        CS_file_path <- system.file("css_data/CSS_TORA_24_04_04_0700.cs",             package = "SeaSondeR")        APM_path <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")        seasonder_disableMessages()        seasonder_apm_obj <- seasonder_readSeaSondeRAPMFile(APM_path)        seasonder_cs_obj <- seasonder_createSeaSondeRCS(CS_file_path,             seasonder_apm_object = seasonder_apm_obj)        first_order_settings <- list(nsm = 2, fdown = 10^(10/10),             flim = 10^(20/10), noisefact = 10^(6/10), currmax = 2,             reject_distant_bragg = TRUE, reject_noise_ionospheric = FALSE,             reject_noise_ionospheric_threshold = 0)        seasonder_cs_obj <- seasonder_computeFORs(seasonder_cs_obj,             FOR_control = first_order_settings)        MUSIC_options <- list(doppler_interpolation = 2, smoothNoiseLevel = TRUE,             PPMIN = 5, PWMAX = 50)        seasonder_cs_obj <- seasonder_setMUSICOptions(seasonder_cs_obj,             MUSIC_options)        seasonder_cs_obj <- seasonder_runMUSICInFOR(seasonder_cs_obj)        lluv_temp_path <- tempfile(pattern = "CSS_TORA_24_04_04_0700",             fileext = ".ruv")        AngSeg <- purrr::list_c(lapply(45:61, function(i) list(c(i,             313, 360), c(i, 0, 31))))        seasonder_exportLLUVRadialMetrics(seasonder_cs_obj, LLUV_path = lluv_temp_path,             AngSeg = AngSeg)        expected_metrics_text <- readLines(system.file("css_data/CSS_TORA_24_04_04_0700.ruv",             package = "SeaSondeR"))        radial_metrics_text <- readLines(lluv_temp_path)        filter_text <- function(txt) {            txt[!grepl("^%ProcessedTimeStamp", txt)]        }        expected_metrics_text <- filter_text(expected_metrics_text)        radial_metrics_text <- filter_text(radial_metrics_text)        expect_equal(radial_metrics_text, expected_metrics_text)    })
  35: eval(code, test_env)
  36: eval(code, test_env)
  37: 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)
  38: doTryCatch(return(expr), name, parentenv, handler)
  39: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  40: tryCatchList(expr, classes, parentenv, handlers)
  41: 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)
  42: doWithOneRestart(return(expr), restart)
  43: withOneRestart(expr, restarts[[1L]])
  44: 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() {    })
  45: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  46: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  47: FUN(X[[i]], ...)
  48: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  49: doTryCatch(return(expr), name, parentenv, handler)
  50: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  51: tryCatchList(expr, classes, parentenv, handlers)
  52: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  53: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  54: 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)
  55: 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)
  56: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  57: test_check("SeaSondeR")
  An irrecoverable exception occurred. R is aborting now ...