CRAN Package Check Results for Package amt

Last updated on 2020-03-30 20:48:21 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.8 68.35 339.56 407.91 OK
r-devel-linux-x86_64-debian-gcc 0.0.8 44.98 248.92 293.90 OK
r-devel-linux-x86_64-fedora-clang 0.0.8 447.94 NOTE
r-devel-linux-x86_64-fedora-gcc 0.0.8 454.93 NOTE
r-devel-windows-ix86+x86_64-gcc8 0.0.8 141.00 449.00 590.00 ERROR
r-patched-linux-x86_64 0.0.8 54.74 315.65 370.39 OK
r-patched-solaris-x86 0.0.8 607.30 NOTE
r-release-linux-x86_64 0.0.8 52.90 289.55 342.45 OK
r-release-windows-ix86+x86_64 0.0.8 180.00 622.00 802.00 OK
r-release-osx-x86_64 0.0.8 ERROR
r-oldrel-windows-ix86+x86_64 0.0.8 91.00 471.00 562.00 OK
r-oldrel-osx-x86_64 0.0.8 ERROR

Check Details

Version: 0.0.8
Check: package dependencies
Result: NOTE
    Imports includes 25 non-default packages.
    Importing from so many packages makes the package vulnerable to any of
    them becoming unavailable. Move as many as possible to Suggests and
    use conditionally.
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.0.8
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘Rcpp’ ‘magrittr’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.0.8
Check: running examples for arch ‘i386’
Result: ERROR
    Running examples in 'amt-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: steps
    > ### Title: Functions to create and work with steps
    > ### Aliases: steps direction_abs direction_abs.track_xy direction_rel
    > ### direction_rel.track_xy step_lengths step_lengths.track_xy
    > ### steps_by_burst steps_by_burst.track_xyt steps.track_xy
    > ### steps.track_xyt
    >
    > ### ** Examples
    >
    >
    > xy <- tibble(
    + x = c(1, 4, 8, 8, 12, 8, 0, 0, 4, 2),
    + y = c(0, 0, 0, 8, 12, 12, 12, 8, 4, 2))
    > trk <- make_track(xy, x, y)
    .t missing, creating `track_xy`.
    >
    > # append last
    > direction_abs(trk, append_last = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > direction_abs(trk, append_last = FALSE)
    [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963
    [8] -0.7853982 -2.3561945
    >
    > # degrees
    > direction_abs(trk) %>% as_degree
     [1] 0 0 90 45 180 180 -90 -45 -135 NA
    >
    > # full circle or not: check
    > direction_abs(trk, full_circle = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 4.7123890
     [8] 5.4977871 3.9269908 NA
    > direction_abs(trk, full_circle = FALSE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > direction_abs(trk, full_circle = TRUE) %>% as_degree()
     [1] 0 0 90 45 180 180 270 315 225 NA
    > direction_abs(trk, full_circle = FALSE) %>% as_degree()
     [1] 0 0 90 45 180 180 -90 -45 -135 NA
    >
    > # direction of 0
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N")
     [1] 4.712389 4.712389 0.000000 5.497787 1.570796 1.570796 3.141593 3.926991
     [9] 2.356194 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "E")
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 4.7123890
     [8] 5.4977871 3.9269908 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "S")
     [1] 1.5707963 1.5707963 3.1415927 2.3561945 4.7123890 4.7123890 0.0000000
     [8] 0.7853982 5.4977871 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "W")
     [1] 3.1415927 3.1415927 4.7123890 3.9269908 0.0000000 0.0000000 1.5707963
     [8] 2.3561945 0.7853982 NA
    >
    > # clockwise or not
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N", clockwise = FALSE)
     [1] 4.712389 4.712389 0.000000 5.497787 1.570796 1.570796 3.141593 3.926991
     [9] 2.356194 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N", clockwise = TRUE)
     [1] 1.5707963 1.5707963 0.0000000 0.7853982 4.7123890 4.7123890 3.1415927
     [8] 2.3561945 3.9269908 NA
    >
    > # Bearing (i.e. azimuth): only for lon/lat
    > direction_abs(trk, full_circle = FALSE, zero_dir = "N", lonlat = FALSE, clockwise = TRUE)
     [1] 1.5707963 1.5707963 0.0000000 0.7853982 -1.5707963 -1.5707963
     [7] 3.1415927 2.3561945 -2.3561945 NA
    > direction_abs(trk, full_circle = FALSE, zero_dir = "N", lonlat = TRUE, clockwise = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7955594 3.1343323 3.1270549
     [7] -1.5707963 -0.7808671 -2.3598475 NA
    >
    > # How do results compare to other packages
    > # adehabitatLT
    > df <- adehabitatLT::as.ltraj(data.frame(x = xy$x, y = xy$y), typeII = FALSE, id = 1)
    > df[[1]]$abs.angle
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > amt::direction_abs(trk)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    >
    > # bcpa
    > df <- bcpa::MakeTrack(xy$x, xy$y, lubridate::now() + lubridate::hours(1:10))
    > bcpa::GetVT(df)$Phi
    [1] 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963 -0.7853982
    [8] -2.3561945
    > direction_abs(trk, full_circle = FALSE, append_last = FALSE)
    [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963
    [8] -0.7853982 -2.3561945
    >
    > # move
    > m <- move::move(xy$x, xy$y, lubridate::now() + lubridate::hours(1:10),
    + proj = sp::CRS("+init=epsg:4326"))
    Error in validityMethod(as(object, superClass)) :
     There are NA timestamps records
    Calls: <Anonymous> ... validObject -> anyStrings -> isTRUE -> validityMethod
    Execution halted
Flavor: r-devel-windows-ix86+x86_64-gcc8

Version: 0.0.8
Check: running examples for arch ‘x64’
Result: ERROR
    Running examples in 'amt-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: steps
    > ### Title: Functions to create and work with steps
    > ### Aliases: steps direction_abs direction_abs.track_xy direction_rel
    > ### direction_rel.track_xy step_lengths step_lengths.track_xy
    > ### steps_by_burst steps_by_burst.track_xyt steps.track_xy
    > ### steps.track_xyt
    >
    > ### ** Examples
    >
    >
    > xy <- tibble(
    + x = c(1, 4, 8, 8, 12, 8, 0, 0, 4, 2),
    + y = c(0, 0, 0, 8, 12, 12, 12, 8, 4, 2))
    > trk <- make_track(xy, x, y)
    .t missing, creating `track_xy`.
    >
    > # append last
    > direction_abs(trk, append_last = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > direction_abs(trk, append_last = FALSE)
    [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963
    [8] -0.7853982 -2.3561945
    >
    > # degrees
    > direction_abs(trk) %>% as_degree
     [1] 0 0 90 45 180 180 -90 -45 -135 NA
    >
    > # full circle or not: check
    > direction_abs(trk, full_circle = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 4.7123890
     [8] 5.4977871 3.9269908 NA
    > direction_abs(trk, full_circle = FALSE)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > direction_abs(trk, full_circle = TRUE) %>% as_degree()
     [1] 0 0 90 45 180 180 270 315 225 NA
    > direction_abs(trk, full_circle = FALSE) %>% as_degree()
     [1] 0 0 90 45 180 180 -90 -45 -135 NA
    >
    > # direction of 0
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N")
     [1] 4.712389 4.712389 0.000000 5.497787 1.570796 1.570796 3.141593 3.926991
     [9] 2.356194 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "E")
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 4.7123890
     [8] 5.4977871 3.9269908 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "S")
     [1] 1.5707963 1.5707963 3.1415927 2.3561945 4.7123890 4.7123890 0.0000000
     [8] 0.7853982 5.4977871 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "W")
     [1] 3.1415927 3.1415927 4.7123890 3.9269908 0.0000000 0.0000000 1.5707963
     [8] 2.3561945 0.7853982 NA
    >
    > # clockwise or not
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N", clockwise = FALSE)
     [1] 4.712389 4.712389 0.000000 5.497787 1.570796 1.570796 3.141593 3.926991
     [9] 2.356194 NA
    > direction_abs(trk, full_circle = TRUE, zero_dir = "N", clockwise = TRUE)
     [1] 1.5707963 1.5707963 0.0000000 0.7853982 4.7123890 4.7123890 3.1415927
     [8] 2.3561945 3.9269908 NA
    >
    > # Bearing (i.e. azimuth): only for lon/lat
    > direction_abs(trk, full_circle = FALSE, zero_dir = "N", lonlat = FALSE, clockwise = TRUE)
     [1] 1.5707963 1.5707963 0.0000000 0.7853982 -1.5707963 -1.5707963
     [7] 3.1415927 2.3561945 -2.3561945 NA
    > direction_abs(trk, full_circle = FALSE, zero_dir = "N", lonlat = TRUE, clockwise = TRUE)
     [1] 0.0000000 0.0000000 1.5707963 0.7955594 3.1343323 3.1270549
     [7] -1.5707963 -0.7808671 -2.3598475 NA
    >
    > # How do results compare to other packages
    > # adehabitatLT
    > df <- adehabitatLT::as.ltraj(data.frame(x = xy$x, y = xy$y), typeII = FALSE, id = 1)
    > df[[1]]$abs.angle
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    > amt::direction_abs(trk)
     [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927
     [7] -1.5707963 -0.7853982 -2.3561945 NA
    >
    > # bcpa
    > df <- bcpa::MakeTrack(xy$x, xy$y, lubridate::now() + lubridate::hours(1:10))
    > bcpa::GetVT(df)$Phi
    [1] 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963 -0.7853982
    [8] -2.3561945
    > direction_abs(trk, full_circle = FALSE, append_last = FALSE)
    [1] 0.0000000 0.0000000 1.5707963 0.7853982 3.1415927 3.1415927 -1.5707963
    [8] -0.7853982 -2.3561945
    >
    > # move
    > m <- move::move(xy$x, xy$y, lubridate::now() + lubridate::hours(1:10),
    + proj = sp::CRS("+init=epsg:4326"))
    Error in validityMethod(as(object, superClass)) :
     There are NA timestamps records
    Calls: <Anonymous> ... validObject -> anyStrings -> isTRUE -> validityMethod
    Execution halted
Flavor: r-devel-windows-ix86+x86_64-gcc8

Version: 0.0.8
Check: tests
Result: ERROR
     Running ‘testthat.R’ [67s/67s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     The following object is masked from 'package:stats':
    
     filter
    
     >
     > test_check("amt")
     ── 1. Failure: akde works (@test.hr.R#20) ─────────────────────────────────────
     `mini_fisher %>% hr_akde(., model = fit_ctmm(., "bm"))` did not throw an error.
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 76 | SKIPPED: 0 | WARNINGS: 7 | FAILED: 1 ]
     1. Failure: akde works (@test.hr.R#20)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-osx-x86_64

Version: 0.0.8
Check: tests
Result: ERROR
     Running ‘testthat.R’ [208s/218s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     The following object is masked from 'package:stats':
    
     filter
    
     >
     > test_check("amt")
     ── 1. Failure: akde works (@test.hr.R#20) ─────────────────────────────────────
     `mini_fisher %>% hr_akde(., model = fit_ctmm(., "bm"))` did not throw an error.
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 76 | SKIPPED: 0 | WARNINGS: 7 | FAILED: 1 ]
     1. Failure: akde works (@test.hr.R#20)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-osx-x86_64