Running ‘testthat.R’ [30s/67s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(mudata2)
  
  Attaching package: 'mudata2'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("mudata2")
  Guessing x columns: depth
  Replacing types ecclimate/data/dataset/character with ecclimate/data/dataset/a_new_type
  Replacing types ecclimate/data/dataset/character with ecclimate/data/dataset/a_new_type
  Replacing types ecclimate/data/date/datetime with ecclimate/data/date/date
  Converting POSIXt column to UTC
  Converting POSIXt column to UTC
  Converting POSIXt column to UTC
  
   *** caught segfault ***
  address 0x32, cause 'memory not mapped'
  
  Traceback:
   1: x[["trace"]]
   2: fn(cnd, ...)
   3: cnd_some(cnd, function(x) !is_null(x[["trace"]]))
   4: cnd_entrace(e)
   5: h(simpleError(msg, call))
   6: .handleSimpleError(function (e) {    handled <<- TRUE    test_error <<- e    options(expressions = expressions_opt_new)    on.exit(options(expressions = expressions_opt), add = TRUE)    if (can_entrace(e)) {        e <- cnd_entrace(e)    }    test_error <<- e    register_expectation(e, 2)    e[["handled"]] <- TRUE    test_error <<- e}, "'rho' must be an environment not language: detected in C-level eval",     base::quote(NULL))
   7: (function (envir) {    handlers <- get_handlers(envir)    errors <- list()    for (handler in handlers) {        tryCatch(eval(handler$expr, handler$envir), error = function(e) {            errors[[length(errors) + 1]] <<- e        })    }    attr(envir, "withr_handlers") <- NULL    for (error in errors) {        stop(error)    }})(<environment>)
   8: test_that("mudata_read guesses column types when columns table is missing",     {        tf <- tempfile()        write_mudata_dir(ns_climate, tf)        unlink(file.path(tf, "columns.csv"))        new_md <- read_mudata_dir(tf)        expect_s3_class(new_md %>% tbl_data() %>% dplyr::pull(date),             "Date")        unlink(tf, recursive = TRUE)    })
   9: eval(code, test_env)
  10: eval(code, test_env)
  11: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  14: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  15: doTryCatch(return(expr), name, parentenv, handler)
  16: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  17: tryCatchList(expr, classes, parentenv, handlers)
  18: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  19: test_code(test = NULL, code = exprs, env = env, default_reporter = StopReporter$new())
  20: source_file(path, env(env), wrap = wrap)
  21: FUN(X[[i]], ...)
  22: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  27: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  28: 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,     wrap = wrap, load_package = load_package)
  29: 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,     wrap = wrap, load_package = load_package, parallel = parallel)
  30: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  31: test_check("mudata2")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault