Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > 
  > test_check('Gmisc')
  Loading required package: Gmisc
  Loading required package: Rcpp
  Loading required package: htmlTable
   ----------- FAILURE REPORT -------------- 
   --- failure: the condition has length > 1 ---
   --- srcref --- 
  : 
   --- package (from environment) --- 
  Gmisc
   --- call from context --- 
  validateAndConvertVectorInputs(1:3, unit(1:3, "npc"), x_origo = 0, 
      y_origo = 0)
   --- call from argument --- 
  if (class(y) != class(x)) stop("The x and y point don't have the same class,", 
      " should be either numeric or units.", " Currently you have provided y=", 
      class(y), " & x=", class(x))
   --- R stacktrace ---
  where 1: validateAndConvertVectorInputs(1:3, unit(1:3, "npc"), x_origo = 0, 
      y_origo = 0)
  where 2: eval_bare(get_expr(quo), get_env(quo))
  where 3: doTryCatch(return(expr), name, parentenv, handler)
  where 4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 5: tryCatchList(expr, classes, parentenv, handlers)
  where 6: tryCatch({
      code
      NULL
  }, error = function(e) e)
  where 7: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  where 8: quasi_capture(enquo(object), capture_error, label = label)
  where 9 at testthat/test-bezier.R#34: expect_error(validateAndConvertVectorInputs(1:3, unit(1:3, "npc"), 
      x_origo = 0, y_origo = 0))
  where 10: eval(code, test_env)
  where 11: eval(code, test_env)
  where 12: 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 13: doTryCatch(return(expr), name, parentenv, handler)
  where 14: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 15: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 16: doTryCatch(return(expr), name, parentenv, handler)
  where 17: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 18: tryCatchList(expr, classes, parentenv, handlers)
  where 19: 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 20: test_code(desc, code, env = parent.frame())
  where 21 at testthat/test-bezier.R#33: test_that("Check helpers", {
      expect_error(validateAndConvertVectorInputs(1:3, unit(1:3, 
          "npc"), x_origo = 0, y_origo = 0))
      expect_error(validateAndConvertVectorInputs(1:3, 1:3, x_origo = 1))
      expect_error(validateAndConvertVectorInputs(1:3, 1:3, x_origo = 1, 
          y_origo = unit(1, "npc")))
  })
  where 22: eval(code, test_env)
  where 23: eval(code, test_env)
  where 24: 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 25: doTryCatch(return(expr), name, parentenv, handler)
  where 26: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  where 27: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  where 28: doTryCatch(return(expr), name, parentenv, handler)
  where 29: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 
      names[nh], parentenv, handlers[[nh]])
  where 30: tryCatchList(expr, classes, parentenv, handlers)
  where 31: 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 32: test_code(NULL, exprs, env)
  where 33: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  where 34: force(code)
  where 35: 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 36: FUN(X[[i]], ...)
  where 37: lapply(paths, test_file, env = env, reporter = current_reporter, 
      start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  where 38: force(code)
  where 39: 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 40: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure, 
      stop_on_warning = stop_on_warning, wrap = wrap)
  where 41: 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 42: 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 43: test_check("Gmisc")
  
   --- value of length: 2 type: logical ---
  [1] TRUE TRUE
   --- function from context --- 
  function (x, y, x_origo, y_origo) 
  {
      if (missing(x_origo) != missing(y_origo)) 
          stop("You must specify both origo points!")
      if (missing(x) || missing(y)) 
          stop("You must specify both x and y points!")
      if (class(y) != class(x)) 
          stop("The x and y point don't have the same class,", 
              " should be either numeric or units.", " Currently you have provided y=", 
              class(y), " & x=", class(x))
      if (missing(x_origo)) {
          if (inherits(y, "unit")) 
              y_origo <- x_origo <- unit(0, attr(y, "unit"))
          else x_origo <- y_origo <- 0
      }
      if (class(y_origo) != class(x_origo)) 
          stop("The x and y point for the origo point don't have the same class,", 
              " should be either numeric or units.", " Currently you have provided y=", 
              class(y_origo), " & x=", class(x_origo))
      if (class(y) != class(y_origo)) 
          stop("The angle won't make any sense if your x and y point", 
              " don't have the same unit as the origo x and y point.", 
              " Currently you have provided point class=", class(y), 
              " & origo class=", class(y_origo))
      return(list(y = y, x = x, y_origo = y_origo, x_origo = x_origo))
  }
  <bytecode: 0x55fc06f22908>
  <environment: namespace:Gmisc>
   --- function search by body ---
  Function validateAndConvertVectorInputs in namespace Gmisc has this body.
   ----------- END OF FAILURE REPORT -------------- 
  Fatal error: the condition has length > 1