Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ungroup)
  > 
  > test_check("ungroup")
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  ungroup
   --- call from context --- 
  validate.nlast(x, nlast, out.step)
   --- call from argument --- 
  if (frac(N) != 0) {
      n.bins <- round(N, 0)
      new.nlast <- n.bins * out.step - len + nlast
      vos <- suggest.valid.out.step(len)
      warning("'nlast' has been adjusted in order to obtain ", 
          n.bins, " bins of equal length as specified in 'out.step = ", 
          out.step, "'. Now 'nlast = ", new.nlast, "'. The impact in results should be", 
          " insignificant. However, if the adjustment is not acceptable", 
          " try out one of the following 'out.step' values: ", 
          paste(vos, collapse = ", "), ".", call. = FALSE)
  } else {
      new.nlast <- nlast
  }
   --- R stacktrace ---
  where 1: validate.nlast(x, nlast, out.step)
  where 2: pclm(x, y, nlast = c(1, 100))
  where 3: eval_bare(get_expr(quo), get_env(quo))
  where 4: doTryCatch(return(expr), name, parentenv, handler)
  where 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 6: tryCatchList(expr, classes, parentenv, handlers)
  where 7: tryCatch({
      code
      NULL
  }, error = function(e) e)
  where 8: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  where 9: quasi_capture(enquo(object), capture_error, label = label)
  where 10 at testthat/test_pclm.R#68: expect_error(pclm(x, y, nlast = c(1, 100)))
  where 11: eval(code, test_env)
  where 12: eval(code, test_env)
  where 13: 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)
  where 14: doTryCatch(return(expr), name, parentenv, handler)
  where 15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 17: doTryCatch(return(expr), name, parentenv, handler)
  where 18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 19: tryCatchList(expr, classes, parentenv, handlers)
  where 20: 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) {
      })
  where 21: test_code(NULL, exprs, env)
  where 22: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 23: force(code)
  where 24: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter, 
      {
          lister$start_file(basename(path))
          source_file(path, new.env(parent = env), chdir = TRUE, 
              wrap = wrap)
          end_context()
      })
  where 25: FUN(X[[i]], ...)
  where 26: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 27: force(code)
  where 28: with_reporter(reporter = current_reporter, results <- lapply(paths, 
      test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE, 
      load_helpers = FALSE, wrap = wrap))
  where 29: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 30: test_dir(path = test_path, reporter = reporter, env = env, filter = filter, 
      ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
      wrap = wrap)
  where 31: test_package_dir(package = package, test_path = test_path, filter = filter, 
      reporter = reporter, ..., stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 32: test_check("ungroup")
  
   --- value of length: 2 type: logical ---
  [1] FALSE FALSE
   --- function from context --- 
  function (x, nlast, out.step) 
  {
      len <- max(x) - min(x) + nlast
      N <- len/out.step
      if (frac(N) != 0) {
          n.bins <- round(N, 0)
          new.nlast <- n.bins * out.step - len + nlast
          vos <- suggest.valid.out.step(len)
          warning("'nlast' has been adjusted in order to obtain ", 
              n.bins, " bins of equal length as specified in 'out.step = ", 
              out.step, "'. Now 'nlast = ", new.nlast, "'. The impact in results should be", 
              " insignificant. However, if the adjustment is not acceptable", 
              " try out one of the following 'out.step' values: ", 
              paste(vos, collapse = ", "), ".", call. = FALSE)
      }
      else {
          new.nlast <- nlast
      }
      return(new.nlast)
  }
  <bytecode: 0x55577897a8d8>
  <environment: namespace:ungroup>
   --- function search by body ---
  Function validate.nlast in namespace ungroup has this body.
  
   *** caught segfault ***
  address 0x1200000039, cause 'memory not mapped'
  
  Traceback:
   1: validate.nlast(x, nlast, out.step)
   2: pclm(x, y, nlast = c(1, 100))
   3: eval_bare(get_expr(quo), get_env(quo))
   4: doTryCatch(return(expr), name, parentenv, handler)
   5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6: tryCatchList(expr, classes, parentenv, handlers)
   7: tryCatch({    code    NULL}, error = function(e) e)
   8: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
   9: quasi_capture(enquo(object), capture_error, label = label)
  10: expect_error(pclm(x, y, nlast = c(1, 100)))
  11: eval(code, test_env)
  12: eval(code, test_env)
  13: 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)
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  17: doTryCatch(return(expr), name, parentenv, handler)
  18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  19: tryCatchList(expr, classes, parentenv, handlers)
  20: 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) {    })
  21: test_code(NULL, exprs, env)
  22: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  23: force(code)
  24: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  25: FUN(X[[i]], ...)
  26: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  27: force(code)
  28: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  29: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  30: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  31: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  32: test_check("ungroup")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault