Running 'testthat.R' [63s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(SCORPIUS)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(purrr)
  > library(testthat)
  
  Attaching package: 'testthat'
  
  The following object is masked from 'package:purrr':
  
      is_null
  
  The following object is masked from 'package:dplyr':
  
      matches
  
  > 
  > test_check("SCORPIUS")
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 189 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-extract_modules.R:42:3): it fails gracefully ────────────────────
  Error in `stats::smooth.spline(lambda, xj, ..., df = df, keep.data = FALSE)`: need at least four unique 'x' values
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-extract_modules.R:42:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─SCORPIUS::extract_modules(rbind(runif(1001), runif(1001)))
    7.   └─purrr::map_df(...)
    8.     └─purrr::map(.x, .f, ...)
    9.       └─SCORPIUS (local) .f(.x[[i]], ...)
   10.         └─SCORPIUS:::.extract_modules_order_data(...)
   11.           ├─base::suppressWarnings(infer_trajectory(as.matrix(tz), k = 0)$time)
   12.           │ └─base::withCallingHandlers(...)
   13.           └─SCORPIUS::infer_trajectory(as.matrix(tz), k = 0)
   14.             └─princurve::principal_curve(...)
   15.               └─princurve (local) smoother_function(pcurve$lambda, x[, jj], ...)
   16.                 └─stats::smooth.spline(lambda, xj, ..., df = df, keep.data = FALSE)
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 189 ]
  Error: Test failures
  Execution halted