CRAN Package Check Results for Package move2

Last updated on 2023-12-10 07:49:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.6 12.31 270.08 282.39 OK
r-devel-linux-x86_64-debian-gcc 0.2.6 9.55 195.07 204.62 OK
r-devel-linux-x86_64-fedora-clang 0.2.6 343.70 OK
r-devel-linux-x86_64-fedora-gcc 0.2.6 354.10 OK
r-devel-windows-x86_64 0.2.6 11.00 206.00 217.00 OK
r-patched-linux-x86_64 0.2.6 12.31 257.85 270.16 OK
r-release-linux-x86_64 0.2.6 11.43 246.85 258.28 OK
r-release-macos-arm64 0.2.6 98.00 OK
r-release-macos-x86_64 0.2.6 219.00 OK
r-release-windows-x86_64 0.2.6 13.00 276.00 289.00 OK
r-oldrel-macos-arm64 0.2.6 119.00 ERROR
r-oldrel-macos-x86_64 0.2.2 97.00 OK
r-oldrel-windows-x86_64 0.2.6 16.00 261.00 277.00 ERROR

Check Details

Version: 0.2.6
Check: examples
Result: ERROR Running examples in ‘move2-Ex.R’ failed The error most likely occurred in: > ### Name: mt_time > ### Title: Retrieve/replace timestamps or get the interval duration between > ### locations > ### Aliases: mt_time mt_time<- mt_set_time mt_time_lags > > ### ** Examples > > ## in the simulated track, time is numeric, so the time lags are also numeric > x <- mt_sim_brownian_motion(1:3) > x |> mt_time() [1] 1 2 3 1 2 3 > x |> mt_time_lags() [1] 1 1 NA 1 1 NA > > ## here the simulated track has timestamps, so the time lags have units > x <- mt_sim_brownian_motion(as.POSIXct((1:3) * 60^2, origin = "1970-1-1"), tracks = 1) > x |> mt_time() [1] "1970-01-01 13:00:00 NZST" "1970-01-01 14:00:00 NZST" [3] "1970-01-01 15:00:00 NZST" > x |> mt_time_lags() Units: [h] [1] 1 1 NA > x <- mt_sim_brownian_motion(as.Date(1:3, "1990-1-1"), tracks = 2) > x |> mt_time() [1] "1990-01-02" "1990-01-03" "1990-01-04" "1990-01-02" "1990-01-03" [6] "1990-01-04" > x |> mt_time_lags() Units: [d] [1] 1 1 NA 1 1 NA > > ## units of the time lags can also be transformed, e.g. from days to hours > tl <- x |> mt_time_lags() > units::set_units(tl, h) Units: [h] [1] 24 24 NA 24 24 NA > > x <- mt_sim_brownian_motion(t = as.POSIXct(1:3), tracks = 2) Error in as.POSIXct.numeric(1:3) : 'origin' must be supplied Calls: mt_sim_brownian_motion -> as.POSIXct -> as.POSIXct.numeric Execution halted Flavor: r-oldrel-macos-arm64

Version: 0.2.6
Check: tests
Result: ERROR Running ‘testthat.R’ [30s/48s] Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: 1. ├─testthat::expect_error(...) at test-mt_as_move2.R:49:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─move2::mt_as_move2(...) 8. ├─sf::st_as_sf(...) 9. ├─base::data.frame(...) 10. ├─base::as.Date(1) 11. └─base::as.Date.numeric(1) [ FAIL 1 | WARN 8 | SKIP 14 | PASS 652 ] Error: Test failures Execution halted Flavor: r-oldrel-macos-arm64

Version: 0.2.6
Check: examples
Result: ERROR Running examples in 'move2-Ex.R' failed The error most likely occurred in: > ### Name: mt_time > ### Title: Retrieve/replace timestamps or get the interval duration between > ### locations > ### Aliases: mt_time mt_time<- mt_set_time mt_time_lags > > ### ** Examples > > ## in the simulated track, time is numeric, so the time lags are also numeric > x <- mt_sim_brownian_motion(1:3) > x |> mt_time() [1] 1 2 3 1 2 3 > x |> mt_time_lags() [1] 1 1 NA 1 1 NA > > ## here the simulated track has timestamps, so the time lags have units > x <- mt_sim_brownian_motion(as.POSIXct((1:3) * 60^2, origin = "1970-1-1"), tracks = 1) > x |> mt_time() [1] "1970-01-01 02:00:00 CET" "1970-01-01 03:00:00 CET" [3] "1970-01-01 04:00:00 CET" > x |> mt_time_lags() Units: [h] [1] 1 1 NA > x <- mt_sim_brownian_motion(as.Date(1:3, "1990-1-1"), tracks = 2) > x |> mt_time() [1] "1990-01-02" "1990-01-03" "1990-01-04" "1990-01-02" "1990-01-03" [6] "1990-01-04" > x |> mt_time_lags() Units: [d] [1] 1 1 NA 1 1 NA > > ## units of the time lags can also be transformed, e.g. from days to hours > tl <- x |> mt_time_lags() > units::set_units(tl, h) Units: [h] [1] 24 24 NA 24 24 NA > > x <- mt_sim_brownian_motion(t = as.POSIXct(1:3), tracks = 2) Error in as.POSIXct.numeric(1:3) : 'origin' must be supplied Calls: mt_sim_brownian_motion -> as.POSIXct -> as.POSIXct.numeric Execution halted Flavor: r-oldrel-windows-x86_64

Version: 0.2.6
Check: tests
Result: ERROR Running 'testthat.R' [122s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(move2) > > > test_check("move2") Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE Joining with `by = join_by(`individual-local-identifier`)` [ FAIL 1 | WARN 8 | SKIP 14 | PASS 652 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • On CRAN (13): 'test-calculate_properties.R:25:3', 'test-movebank_api.R:148:3', 'test-movebank_api.R:187:3', 'test-movebank_api.R:218:3', 'test-movebank_api.R:248:3', 'test-movebank_api.R:256:3', 'test-movebank_api.R:266:3', 'test-movebank_api.R:284:3', 'test-movebank_api.R:310:3', 'test-movebank_get_vocabulary.R:2:3', 'test-movebank_speed.R:2:3', 'test-movebank_speed.R:39:3', 'test-mt_read_speed.R:2:3' • empty test (1): 'test-movebank_api.R:176:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-mt_as_move2.R:49:3'): error on wrong column values ───────────── Error in `as.Date.numeric(1)`: 'origin' must be supplied Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-mt_as_move2.R:49:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─move2::mt_as_move2(...) 8. ├─sf::st_as_sf(...) 9. ├─base::data.frame(...) 10. ├─base::as.Date(1) 11. └─base::as.Date.numeric(1) [ FAIL 1 | WARN 8 | SKIP 14 | PASS 652 ] Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64