Running ‘testthat.R’ [62s/89s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(move2)
  > 
  > 
  > test_check("move2")
  Linking to GEOS 3.14.1, GDAL 3.13.2, PROJ 9.8.1; sf_use_s2() is TRUE
  Saving _problems/test-tidyr-55.R
  [ FAIL 1 | WARN 0 | SKIP 19 | PASS 812 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • On CRAN (17): 'test-calculate_properties.R:25:3',
    'test-movebank_api.R:204:3', 'test-movebank_api.R:256:3',
    'test-movebank_api.R:289:3', 'test-movebank_api.R:331:3',
    'test-movebank_api.R:358:3', 'test-movebank_api.R:407:3',
    'test-movebank_api.R:415:3', 'test-movebank_api.R:428:3',
    'test-movebank_api.R:446:3', 'test-movebank_api.R:483:3',
    'test-movebank_api.R:536:3', 'test-movebank_api.R:563:3',
    'test-movebank_get_vocabulary.R:2:3', 'test-movebank_get_vocabulary.R:27:3',
    'test-movebank_speed.R:2:3', 'test-movebank_speed.R:44:3'
  • Temporarily disabled (1): 'test-mt_read_speed.R:2:3'
  • empty test (1): 'test-movebank_api.R:273:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tidyr.R:51:3'): reframe and group modify works ─────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `st_as_sf(NextMethod(), sf_column_name = sf_column_name)`: i In argument: `as.Date(timestamp)`.
  Caused by error in `as.Date.POSIXct()`:
  ! REFCNT on locked WRAPPER data increased to 65535
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-tidyr.R:51:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─sf::st_crs(...)
    5. ├─dplyr::reframe(...)
    6. ├─dplyr::group_by(fish, as.Date(timestamp))
    7. ├─move2:::group_by.move2(fish, as.Date(timestamp))
    8. ├─base::NextMethod()
    9. ├─sf:::group_by.sf(fish, as.Date(timestamp))
   10. │ └─sf::st_as_sf(NextMethod(), sf_column_name = sf_column_name)
   11. ├─base::NextMethod()
   12. ├─dplyr:::group_by.data.frame(fish, as.Date(timestamp))
   13. │ └─dplyr::group_by_prepare(.data, ..., .add = .add, error_call = current_env())
   14. │   └─dplyr:::add_computed_columns(.data, new_groups, error_call = error_call)
   15. │     └─dplyr:::mutate_cols(...)
   16. │       ├─base::withCallingHandlers(...)
   17. │       └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
   18. │         └─mask$eval_all_mutate(quo)
   19. │           └─dplyr (local) eval()
   20. ├─base::as.Date(timestamp)
   21. ├─base::as.Date.POSIXct(timestamp)
   22. └─base::.handleSimpleError(...)
   23.   └─dplyr (local) h(simpleError(msg, call))
   24.     └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  
  [ FAIL 1 | WARN 0 | SKIP 19 | PASS 812 ]
  Error:
  ! Test failures.
  Execution halted