Package: densityarea Check: examples New result: ERROR Running examples in ‘densityarea-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: density_area > ### Title: Density Area > ### Aliases: density_area > > ### ** Examples > > library(densityarea) > 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(sf) Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is TRUE > > ggplot2_inst <- require(ggplot2) Loading required package: ggplot2 > > # basic usage > > set.seed(10) > x <- rnorm(100) > y <- rnorm(100) > > density_area(x, + y, + probs = ppoints(50)) -> + poly_areas_df > > head(poly_areas_df) # A tibble: 6 × 3 # Groups: level_id [6] level_id prob area 1 1 0.01 0.0759 2 2 0.03 0.237 3 3 0.05 0.373 4 4 0.07 0.547 5 5 0.09 0.703 6 6 0.11 0.869 > > # Plotting the relationship between probability level and area > if(ggplot2_inst){ + ggplot(poly_areas_df, + aes(prob, area)) + + geom_line() + } > > # Tidyverse usage > > data(s01) > > ## Data preprocessing > > s01 |> + mutate(log_F2 = -log(F2), + log_F1 = -log(F1)) -> + s01 > > ### Data frame output > > s01 |> + group_by(name) |> + reframe(density_area(log_F2, + log_F1, + probs = ppoints(10))) -> + s01_areas_df > > if(ggplot2_inst){ + s01_areas_df |> + ggplot(aes(prob, area)) + + geom_line() + } > > ### Including sf output > > s01 |> + group_by(name) |> + reframe(density_area(log_F2, + log_F1, + probs = ppoints(10), + as_sf = TRUE)) |> + st_sf() -> + s01_areas_sf Error in `reframe()`: ℹ In argument: `density_area(log_F2, log_F1, probs = ppoints(10), as_sf = TRUE)`. Caused by error in `vec_c()`: ! `proxy` of type `list` incompatible with `value` proxy of type `double`. ℹ In file 'slice-assign.c' at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─sf::st_sf(...) 2. ├─dplyr::reframe(...) 3. ├─dplyr:::reframe.data.frame(...) 4. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "reframe") 5. │ ├─base::withCallingHandlers(...) 6. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 7. │ └─base::lapply(.x, .f, ...) 8. │ └─dplyr (local) FUN(X[[i]], ...) 9. │ └─vctrs::vec_c(!!!chunks_k, .ptype = types_k) 10. └─rlang:::stop_internal_c_lib(...) 11. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) Execution halted Package: fjoin Check: tests New result: ERROR Running ‘testthat.R’ [12s/12s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(fjoin) > > test_check("fjoin") id c R.c 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 id c.x c.y 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 id c R.c 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row A5 row B1 6: NA row A5 row B2 7: NA row A6 row B1 8: NA row A6 row B2 id c.x c.y 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row A5 row B1 6: NA row A5 row B2 7: NA row A6 row B1 8: NA row A6 row B2 id c R.c 1: 3 row A4 row B5 2: 3 row A4 row B6 3: 2 row A2 row B7 4: 2 row A3 row B7 id c.x c.y 1: 3 row A4 row B5 2: 3 row A4 row B6 3: 2 row A2 row B7 4: 2 row A3 row B7 id c R.c 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 7: NA row A6 id c.x c.y 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 7: NA row A6 id c R.c 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 row B1 7: NA row A5 row B2 8: NA row A6 row B1 9: NA row A6 row B2 id c.x c.y 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 row B1 7: NA row A5 row B2 8: NA row A6 row B1 9: NA row A6 row B2 id c R.c 1: 3 row A4 row B5 2: 3 row A4 row B6 3: 2 row A2 row B7 4: 2 row A3 row B7 5: 1 row A1 6: NA row A5 7: NA row A6 id c.x c.y 1: 3 row A4 row B5 2: 3 row A4 row B6 3: 2 row A2 row B7 4: 2 row A3 row B7 5: 1 row A1 6: NA row A5 7: NA row A6 id c R.c 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row B1 6: NA row B2 7: 4 row B3 8: 4 row B4 id c.x c.y 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row B1 6: NA row B2 7: 4 row B3 8: 4 row B4 id c R.c 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row A5 row B1 6: NA row A5 row B2 7: NA row A6 row B1 8: NA row A6 row B2 9: 4 row B3 10: 4 row B4 id c.x c.y 1: 2 row A2 row B7 2: 2 row A3 row B7 3: 3 row A4 row B5 4: 3 row A4 row B6 5: NA row A5 row B1 6: NA row A5 row B2 7: NA row A6 row B1 8: NA row A6 row B2 9: 4 row B3 10: 4 row B4 id c R.c 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 5: 3 row A4 row B5 6: 3 row A4 row B6 7: 2 row A2 row B7 8: 2 row A3 row B7 id c.x c.y 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 5: 3 row A4 row B5 6: 3 row A4 row B6 7: 2 row A2 row B7 8: 2 row A3 row B7 id c R.c 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 7: NA row A6 8: NA row B1 9: NA row B2 10: 4 row B3 11: 4 row B4 id c.x c.y 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 7: NA row A6 8: NA row B1 9: NA row B2 10: 4 row B3 11: 4 row B4 id c R.c 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 row B1 7: NA row A5 row B2 8: NA row A6 row B1 9: NA row A6 row B2 10: 4 row B3 11: 4 row B4 id c.x c.y 1: 1 row A1 2: 2 row A2 row B7 3: 2 row A3 row B7 4: 3 row A4 row B5 5: 3 row A4 row B6 6: NA row A5 row B1 7: NA row A5 row B2 8: NA row A6 row B1 9: NA row A6 row B2 10: 4 row B3 11: 4 row B4 id c R.c 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 5: 3 row A4 row B5 6: 3 row A4 row B6 7: 2 row A2 row B7 8: 2 row A3 row B7 9: 1 row A1 10: NA row A5 11: NA row A6 id c.x c.y 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 5: 3 row A4 row B5 6: 3 row A4 row B6 7: 2 row A2 row B7 8: 2 row A3 row B7 9: 1 row A1 10: NA row A5 11: NA row A6 id c R.id R.c 1: 1 row A1 NA row B1 2: 1 row A1 NA row B2 3: 1 row A1 4 row B3 4: 1 row A1 4 row B4 5: 1 row A1 3 row B5 6: 1 row A1 3 row B6 7: 1 row A1 2 row B7 8: 2 row A2 NA row B1 9: 2 row A2 NA row B2 10: 2 row A2 4 row B3 11: 2 row A2 4 row B4 12: 2 row A2 3 row B5 13: 2 row A2 3 row B6 14: 2 row A2 2 row B7 15: 2 row A3 NA row B1 16: 2 row A3 NA row B2 17: 2 row A3 4 row B3 18: 2 row A3 4 row B4 19: 2 row A3 3 row B5 20: 2 row A3 3 row B6 21: 2 row A3 2 row B7 22: 3 row A4 NA row B1 23: 3 row A4 NA row B2 24: 3 row A4 4 row B3 25: 3 row A4 4 row B4 26: 3 row A4 3 row B5 27: 3 row A4 3 row B6 28: 3 row A4 2 row B7 29: NA row A5 NA row B1 30: NA row A5 NA row B2 31: NA row A5 4 row B3 32: NA row A5 4 row B4 33: NA row A5 3 row B5 34: NA row A5 3 row B6 35: NA row A5 2 row B7 36: NA row A6 NA row B1 37: NA row A6 NA row B2 38: NA row A6 4 row B3 39: NA row A6 4 row B4 40: NA row A6 3 row B5 41: NA row A6 3 row B6 42: NA row A6 2 row B7 id c R.id R.c id.x c.x id.y c.y 1: 1 row A1 NA row B1 2: 1 row A1 NA row B2 3: 1 row A1 4 row B3 4: 1 row A1 4 row B4 5: 1 row A1 3 row B5 6: 1 row A1 3 row B6 7: 1 row A1 2 row B7 8: 2 row A2 NA row B1 9: 2 row A2 NA row B2 10: 2 row A2 4 row B3 11: 2 row A2 4 row B4 12: 2 row A2 3 row B5 13: 2 row A2 3 row B6 14: 2 row A2 2 row B7 15: 2 row A3 NA row B1 16: 2 row A3 NA row B2 17: 2 row A3 4 row B3 18: 2 row A3 4 row B4 19: 2 row A3 3 row B5 20: 2 row A3 3 row B6 21: 2 row A3 2 row B7 22: 3 row A4 NA row B1 23: 3 row A4 NA row B2 24: 3 row A4 4 row B3 25: 3 row A4 4 row B4 26: 3 row A4 3 row B5 27: 3 row A4 3 row B6 28: 3 row A4 2 row B7 29: NA row A5 NA row B1 30: NA row A5 NA row B2 31: NA row A5 4 row B3 32: NA row A5 4 row B4 33: NA row A5 3 row B5 34: NA row A5 3 row B6 35: NA row A5 2 row B7 36: NA row A6 NA row B1 37: NA row A6 NA row B2 38: NA row A6 4 row B3 39: NA row A6 4 row B4 40: NA row A6 3 row B5 41: NA row A6 3 row B6 42: NA row A6 2 row B7 id.x c.x id.y c.y id c R.id R.c 1: 1 row A1 NA row B1 2: 2 row A2 NA row B1 3: 2 row A3 NA row B1 4: 3 row A4 NA row B1 5: NA row A5 NA row B1 6: NA row A6 NA row B1 7: 1 row A1 NA row B2 8: 2 row A2 NA row B2 9: 2 row A3 NA row B2 10: 3 row A4 NA row B2 11: NA row A5 NA row B2 12: NA row A6 NA row B2 13: 1 row A1 4 row B3 14: 2 row A2 4 row B3 15: 2 row A3 4 row B3 16: 3 row A4 4 row B3 17: NA row A5 4 row B3 18: NA row A6 4 row B3 19: 1 row A1 4 row B4 20: 2 row A2 4 row B4 21: 2 row A3 4 row B4 22: 3 row A4 4 row B4 23: NA row A5 4 row B4 24: NA row A6 4 row B4 25: 1 row A1 3 row B5 26: 2 row A2 3 row B5 27: 2 row A3 3 row B5 28: 3 row A4 3 row B5 29: NA row A5 3 row B5 30: NA row A6 3 row B5 31: 1 row A1 3 row B6 32: 2 row A2 3 row B6 33: 2 row A3 3 row B6 34: 3 row A4 3 row B6 35: NA row A5 3 row B6 36: NA row A6 3 row B6 37: 1 row A1 2 row B7 38: 2 row A2 2 row B7 39: 2 row A3 2 row B7 40: 3 row A4 2 row B7 41: NA row A5 2 row B7 42: NA row A6 2 row B7 id c R.id R.c id.x c.x id.y c.y 1: 1 row A1 NA row B1 2: 2 row A2 NA row B1 3: 2 row A3 NA row B1 4: 3 row A4 NA row B1 5: NA row A5 NA row B1 6: NA row A6 NA row B1 7: 1 row A1 NA row B2 8: 2 row A2 NA row B2 9: 2 row A3 NA row B2 10: 3 row A4 NA row B2 11: NA row A5 NA row B2 12: NA row A6 NA row B2 13: 1 row A1 4 row B3 14: 2 row A2 4 row B3 15: 2 row A3 4 row B3 16: 3 row A4 4 row B3 17: NA row A5 4 row B3 18: NA row A6 4 row B3 19: 1 row A1 4 row B4 20: 2 row A2 4 row B4 21: 2 row A3 4 row B4 22: 3 row A4 4 row B4 23: NA row A5 4 row B4 24: NA row A6 4 row B4 25: 1 row A1 3 row B5 26: 2 row A2 3 row B5 27: 2 row A3 3 row B5 28: 3 row A4 3 row B5 29: NA row A5 3 row B5 30: NA row A6 3 row B5 31: 1 row A1 3 row B6 32: 2 row A2 3 row B6 33: 2 row A3 3 row B6 34: 3 row A4 3 row B6 35: NA row A5 3 row B6 36: NA row A6 3 row B6 37: 1 row A1 2 row B7 38: 2 row A2 2 row B7 39: 2 row A3 2 row B7 40: 3 row A4 2 row B7 41: NA row A5 2 row B7 42: NA row A6 2 row B7 id.x c.x id.y c.y id c 1: 2 row A2 2: 2 row A3 3: 3 row A4 Index: id c 1: 2 row A2 2: 2 row A3 3: 3 row A4 id c 1: 2 row A2 2: 2 row A3 3: 3 row A4 4: NA row A5 5: NA row A6 Index: id c 1: 2 row A2 2: 2 row A3 3: 3 row A4 4: NA row A5 5: NA row A6 id c id2 1: 2 row A2 2 2: 2 row A3 2 3: 3 row A4 3 Index: id c id2 1: 2 row A2 2 2: 2 row A3 2 3: 3 row A4 3 id c id2 1: 2 row A2 2 2: 2 row A3 2 3: 3 row A4 3 4: NA row A5 NA 5: NA row A6 NA Index: id c id2 1: 2 row A2 2 2: 2 row A3 2 3: 3 row A4 3 4: NA row A5 NA 5: NA row A6 NA id c 1: 3 row B5 2: 3 row B6 3: 2 row B7 id c 1: 3 row B5 2: 3 row B6 3: 2 row B7 id c 1: NA row B1 2: NA row B2 3: 3 row B5 4: 3 row B6 5: 2 row B7 Index: id c 1: NA row B1 2: NA row B2 3: 3 row B5 4: 3 row B6 5: 2 row B7 id c id2 1: 3 row B5 3 2: 3 row B6 3 3: 2 row B7 2 Index: id c id2 1: 3 row B5 3 2: 3 row B6 3 3: 2 row B7 2 id c id2 1: NA row B1 NA 2: NA row B2 NA 3: 3 row B5 3 4: 3 row B6 3 5: 2 row B7 2 Index: id c id2 1: NA row B1 NA 2: NA row B2 NA 3: 3 row B5 3 4: 3 row B6 3 5: 2 row B7 2 id c 1: 1 row A1 2: NA row A5 3: NA row A6 Index: id c 1: 1 row A1 2: NA row A5 3: NA row A6 id c 1: 1 row A1 Index: id c 1: 1 row A1 id c id2 1: 1 row A1 1 2: NA row A5 NA 3: NA row A6 NA Index: id c id2 1: 1 row A1 1 2: NA row A5 NA 3: NA row A6 NA id c id2 1: 1 row A1 1 Index: id c id2 1: 1 row A1 1 id c 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 Index: id c 1: NA row B1 2: NA row B2 3: 4 row B3 4: 4 row B4 id c 1: 4 row B3 2: 4 row B4 Index: id c 1: 4 row B3 2: 4 row B4 id c id2 1: NA row B1 NA 2: NA row B2 NA 3: 4 row B3 4 4: 4 row B4 4 Index: id c id2 1: NA row B1 NA 2: NA row B2 NA 3: 4 row B3 4 4: 4 row B4 4 id c id2 1: 4 row B3 4 2: 4 row B4 4 Index: id c id2 1: 4 row B3 4 2: 4 row B4 4 id_A t_A c v_A 1 NA row A8 0 2 NA row A9 0 id_A t_A c v_A 1 NA row A8 0 2 NA row A9 0 id_A t_A c v_A 1 a 1 row A2 0 2 b 1 row A5 0 3 b 2 row A6 0 4 NA row A8 0 5 NA row A9 0 id_A t_A c v_A 1 a 1 row A2 0 2 b 1 row A5 0 3 b 2 row A6 0 4 NA row A8 0 5 NA row A9 0 id_A t_A c v_A 1 a 1 row A2 0 2 b 5 row A4 0 3 b 1 row A5 0 4 b 2 row A6 0 5 a 3 row A7 0 6 NA row A8 0 7 NA row A9 0 id_A t_A c v_A 1 a 1 row A2 0 2 b 5 row A4 0 3 b 1 row A5 0 4 b 2 row A6 0 5 a 3 row A7 0 6 NA row A8 0 7 NA row A9 0 id_A t_A c v_A 1 NA row A8 0 2 NA row A9 0 id_A t_A c v_A 1 NA row A8 0 2 NA row A9 0 id_A c 1 row A8 2 row A9 id_A c 1 row A8 2 row A9 id_A t_A c 1 a 1 row A2 2 b 1 row A5 3 b 2 row A6 4 NA row A8 5 NA row A9 id_A t_A c 1 a 1 row A2 2 b 1 row A5 3 b 2 row A6 4 NA row A8 5 NA row A9 id_A c 1 a row A2 2 b row A4 3 b row A5 4 b row A6 5 a row A7 6 row A8 7 row A9 id_A c 1 a row A2 2 b row A4 3 b row A5 4 b row A6 5 a row A7 6 row A8 7 row A9 id_A c 1 row A8 2 row A9 id_A c 1 row A8 2 row A9 .DT : y = DF_B (cast as data.table) .i : x = DF_A (cast as data.table) Join: na.omit(.DT, cols = "id_B")[.i, on = "id_B == id_A", data.frame(id_A, t_A, c = i.c, v_A, t_B, R.c = c, v_B), allow.cartesian = TRUE] .DT : x = DF_A (cast as data.table) .i : y = DF_B (cast as data.table) Join: setDF(na.omit(.DT, cols = "id_A")[id_A %chin% .i$id_B])[] .DT : x = DF_A (cast as data.table) .i : y = DF_B (cast as data.table) Join: setDF(.DT[!id_A %chin% .i[, na.omit(.SD), .SDcols = "id_B"]$id_B])[] .DT : y = DF_B (cast as data.table) .i : x = DF_A (cast as data.table) Join: setDF(.DT[id_B %chin% .i[, na.omit(.SD), .SDcols = "id_A"]$id_A])[] .DT : y = DF_B (cast as data.table) .i : x = DF_A (cast as data.table) Join: setDF(.DT[!id_B %chin% .i[, na.omit(.SD), .SDcols = "id_A"]$id_A])[] .DT : y = DF_B (cast as data.table) .i : x = DF_A (cast as data.table) Join: .DT[, fjoin.ind := TRUE][.i[, fjoin.ind := TRUE], on = "fjoin.ind", allow.cartesian = TRUE, data.frame(id_A, t_A, c = i.c, v_A, id_B, t_B, R.c = c, v_B)] .DT : DT_A .i : DT_B Join: with(list(fjoin.temp = setDT(setDT(na.omit(.i[, fjoin.which.i := .I], cols = "id_B")[.DT[, fjoin.which.DT := .I], on = "id_B == id_A", nomatch = NULL, mult = "first", data.frame(id_A = i.id_A, t_A = i.t_A, c = i.c, v_A = i.v_A, fjoin.which.DT = i.fjoin.which.DT, fjoin.ind.DT = TRUE, fjoin.which.i)])[.i, on = "fjoin.which.i", data.frame(.join = fifelse(is.na(fjoin.ind.DT), 2L, 3L), id_A = i.id_B, t_A, c, v_A, fjoin.which.DT, t_B, i.c, v_B)])), rbind(fjoin.temp, setDT(.DT[!fjoin.temp$fjoin.which.DT, data.frame(id_A, t_A, c, v_A, fjoin.which.DT, .join = rep(1L, .N))]), fill = TRUE))[, fjoin.which.DT := NULL][] .DT : DT_A .i : DT_B Join: .DT[!.i[, na.omit(.SD), .SDcols = "id_B"][.DT[, fjoin.which.DT := .I], on = "id_B == id_A", nomatch = NULL, mult = "first", fjoin.which.DT]][, fjoin.which.DT := NULL][] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: na.omit(.DT, cols = "id")[id %in% .i$id] .DT : (unnamed) .i : (unnamed) Join: na.omit(.DT, cols = "id")[id %in% .i$id] .DT : (unnamed) .i : (unnamed) Join: .DT[!id %in% .i[, na.omit(.SD), .SDcols = "id"]$id] .DT : (unnamed) .i : (unnamed) Join: .DT[!id %in% .i[, na.omit(.SD), .SDcols = "id"]$id] .DT : (unnamed) .i : (unnamed) Join: setDT(.DT[, fjoin.ind := TRUE][.i[, fjoin.ind := TRUE], on = "fjoin.ind", allow.cartesian = TRUE, data.frame(id, col_DT, col_c, i.id = i.id, col_i, i.col_c = i.col_c)]) .DT : (unnamed) .i : (unnamed) Join: setDT(.DT[, fjoin.ind := TRUE][.i[, fjoin.ind := TRUE], on = "fjoin.ind", allow.cartesian = TRUE, data.frame(id, col_DT, col_c, i.id = i.id, col_i, i.col_c = i.col_c)]) .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "fjoin_blah")[.i, on = "fjoin_blah", data.frame(fjoin_blah, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "blah_fjoin.")[.i, on = "blah_fjoin.", data.frame(blah_fjoin., col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(.DT[.i, on = "id", data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", nomatch = NULL, data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", nomatch = NULL, data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] .DT : (unnamed) .i : (unnamed) Join: setDT(na.omit(.DT, cols = "id")[.i, on = "id", nomatch = NULL, data.frame(id, col_DT, col_c, col_i, i.col_c), allow.cartesian = TRUE])[] Saving _problems/test15-SF-agr-sfc-attributes-71.R Saving _problems/test15-SF-agr-sfc-attributes-73.R Saving _problems/test15-SF-agr-sfc-attributes-97.R Saving _problems/test15-SF-agr-sfc-attributes-109.R Saving _problems/test15-SF-agr-sfc-attributes-112.R Saving _problems/test15-SF-agr-sfc-attributes-114.R Saving _problems/test15-SF-agr-sfc-attributes-147.R Saving _problems/test15-SF-agr-sfc-attributes-159.R Saving _problems/test15-SF-agr-sfc-attributes-172.R Saving _problems/test15-SF-agr-sfc-attributes-184.R [ FAIL 10 | WARN 0 | SKIP 0 | PASS 472 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test15-SF-agr-sfc-attributes.R:71:3'): sf no non-NA agr ─────────── Expected `sf::st_agr(result)` to be identical to `expected`. Differences: `names(actual)`: "id_A" "c" "v_A" `names(expected)`: "id_A" "c" "v_A" "geom_other_A" `actual`: "NA" "NA" "NA" `expected`: "NA" "NA" "NA" "NA" ── Failure ('test15-SF-agr-sfc-attributes.R:73:3'): sf no non-NA agr ─────────── Expected `sf::st_agr(result)` to be identical to `expected`. Differences: `names(actual)`: "id_A" "c" "v_A" `names(expected)`: "id_A" "c" "v_A" "geom_other_A" `actual`: "NA" "NA" "NA" `expected`: "NA" "NA" "NA" "NA" ── Failure ('test15-SF-agr-sfc-attributes.R:88:3'): sf with non-NA agr ───────── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: `names(actual)`: "id_A" "c" "v_A" "i.c" "v_B" `names(expected)`: "id_A" "c" "v_A" "geom_other_A" "i.c" "v_B" "geom_active_B" `actual[3:5]`: "NA " "NA " "NA " `expected[3:7]`: "NA " "NA " "NA " "NA " "NA " ── Failure ('test15-SF-agr-sfc-attributes.R:99:3'): sf with non-NA agr ───────── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: names(actual) | names(expected) [1] "id_A" | "id_A" [1] [2] "c" | "c" [2] [3] "v_A" | "v_A" [3] [4] "id_B" - "geom_other_A" [4] [5] "i.c" - "id_B" [5] [6] "v_B" - "i.c" [6] - "v_B" [7] - "geom_active_B" [8] `actual[4:6]`: "NA " "NA " "NA " `expected[4:8]`: "NA " "NA " "NA " "NA " "NA " ── Failure ('test15-SF-agr-sfc-attributes.R:112:3'): sf with non-NA agr ──────── Expected `sf::st_agr(result)` to be identical to `expected`. Differences: `names(actual)`: "id_A" "c" "v_A" `names(expected)`: "id_A" "c" "v_A" "geom_other_A" `actual`: "identity " "aggregate" "NA " `expected`: "identity " "aggregate" "NA " "NA " ── Failure ('test15-SF-agr-sfc-attributes.R:114:3'): sf with non-NA agr ──────── Expected `sf::st_agr(result)` to be identical to `expected`. Differences: `names(actual)`: "id_A" "c" "v_A" `names(expected)`: "id_A" "c" "v_A" "geom_other_A" `actual`: "identity " "aggregate" "NA " `expected`: "identity " "aggregate" "NA " "NA " ── Failure ('test15-SF-agr-sfc-attributes.R:138:3'): sf with non-NA agr, i.class=FALSE, i.home=TRUE ── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: `names(actual)`: "id_B" "c" "v_B" "x.c" "v_A" `names(expected)`: "id_B" "c" "v_B" "geom_active_B" "x.c" "v_A" "geom_other_A" actual | expected [1] "NA " | "NA " [1] [2] "NA " | "NA " [2] [3] "NA " | "NA " [3] [4] "aggregate" - "NA " [4] [5] "NA " - "aggregate" [5] - "NA " [6] - "NA " [7] ── Failure ('test15-SF-agr-sfc-attributes.R:149:3'): sf with non-NA agr, i.class=FALSE, i.home=TRUE ── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: names(actual) | names(expected) [1] "id_B" | "id_B" [1] [2] "c" | "c" [2] [3] "v_B" | "v_B" [3] [4] "id_A" - "geom_active_B" [4] [5] "x.c" - "id_A" [5] [6] "v_A" - "x.c" [6] - "v_A" [7] - "geom_other_A" [8] actual | expected [1] "NA " | "NA " [1] [2] "NA " | "NA " [2] [3] "NA " | "NA " [3] [4] "identity " - "NA " [4] [5] "aggregate" - "identity " [5] [6] "NA " - "aggregate" [6] - "NA " [7] - "NA " [8] ── Failure ('test15-SF-agr-sfc-attributes.R:163:3'): sf with non-NA agr, i.class=TRUE, i.home=FALSE ── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: `names(actual)`: "id_A" "c" "v_A" "i.c" "v_B" `names(expected)`: "id_A" "c" "v_A" "geom_active_A" "geom_other_A" "i.c" "v_B" actual | expected [1] "NA " | "NA " [1] [2] "NA " | "NA " [2] [3] "NA " | "NA " [3] - "NA " [4] - "NA " [5] [4] "constant" | "constant" [6] [5] "constant" | "constant" [7] ── Failure ('test15-SF-agr-sfc-attributes.R:174:3'): sf with non-NA agr, i.class=TRUE, i.home=FALSE ── Expected `sf::st_agr(result)` to be identical to `as_agr(...)`. Differences: names(actual) | names(expected) [1] "id_A" | "id_A" [1] [2] "c" | "c" [2] [3] "v_A" | "v_A" [3] - "geom_active_A" [4] - "geom_other_A" [5] [4] "id_B" | "id_B" [6] [5] "i.c" | "i.c" [7] [6] "v_B" | "v_B" [8] actual | expected [2] "NA " | "NA " [2] [3] "NA " | "NA " [3] [4] "NA " | "NA " [4] [5] "constant" - "NA " [5] [6] "constant" - "NA " [6] - "constant" [7] - "constant" [8] [ FAIL 10 | WARN 0 | SKIP 0 | PASS 472 ] Error: ! Test failures. Execution halted Package: fmesher Check: examples New result: ERROR Running examples in ‘fmesher-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: fm_int > ### Title: Multi-domain integration > ### Aliases: fm_int fm_int.list fm_int.numeric fm_int.character > ### fm_int.factor fm_int.SpatRaster fm_int.fm_lattice_2d > ### fm_int.fm_mesh_1d fm_int.fm_mesh_2d > > ### ** Examples > > # Integration on the interval (2, 3.5) with Simpson's rule > ips <- fm_int(fm_mesh_1d(0:4), samplers = cbind(2, 3.5)) > plot(ips$x, ips$weight) > > # Create integration points for the two intervals [0,3] and [5,10] > ips <- fm_int( + fm_mesh_1d(0:10), + rbind(c(0, 3), c(5, 10)) + ) > plot(ips$x, ips$weight) > > # Convert a 1D mesh into integration points > mesh <- fm_mesh_1d(seq(0, 10, by = 1)) > ips <- fm_int(mesh, name = "time") > plot(ips$time, ips$weight) > > if (require("ggplot2", quietly = TRUE)) { + #' Integrate on a 2D mesh with polygon boundary subset + ips <- fm_int(fmexample$mesh, fmexample$boundary_sf[[1]]) + ggplot() + + geom_sf(data = fm_as_sfc(fmexample$mesh, multi = TRUE), alpha = 0.5) + + geom_sf(data = fmexample$boundary_sf[[1]], fill = "red", alpha = 0.5) + + geom_sf(data = ips, aes(size = weight)) + + scale_size_area() + } Error in `vec_rbind()`: ! `proxy` of type `list` incompatible with `value` proxy of type `integer`. ℹ In file 'slice-assign.c' at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(fmexample$mesh, fmexample$boundary_sf[[1]]) 2. ├─fmesher:::fm_int.fm_mesh_2d(fmexample$mesh, fmexample$boundary_sf[[1]]) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) Execution halted Package: fmesher Check: tests New result: ERROR Running ‘testthat.R’ [32s/18s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(fmesher) > > test_check("fmesher") Starting 2 test processes. Saving _problems/test-01-integration-119.R Saving _problems/test-01-integration-150.R Saving _problems/test-01-integration-163.R Saving _problems/test-01-integration-174.R Saving _problems/test-01-integration-214.R Saving _problems/test-01-integration-273.R Saving _problems/test-01-integration-282.R Saving _problems/test-01-integration-325.R Saving _problems/test-01-integration-461.R [ FAIL 9 | WARN 0 | SKIP 0 | PASS 247 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-01-integration.R:119:3'): Integrating an sf polygon on a mesh domain ── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(fmexample$mesh, samplers = fmexample$boundary_sf[[1]]) at test-01-integration.R:119:3 2. ├─fmesher:::fm_int.fm_mesh_2d(fmexample$mesh, samplers = fmexample$boundary_sf[[1]]) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:150:3'): Integrating a fm_segm polygon on a mesh domain ── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(fmexample$mesh, samplers = fmexample$boundary_fm[[1]]) at test-01-integration.R:150:3 2. ├─fmesher:::fm_int.fm_mesh_2d(fmexample$mesh, samplers = fmexample$boundary_fm[[1]]) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.fm_segm(...) 5. │ ├─fmesher::fm_int_mesh_2d(...) 6. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 7. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 8. │ ├─fmesher::new_fm_int(...) 9. │ │ └─base::is.data.frame(object) 10. │ ├─base::do.call(dplyr::bind_rows, ipsl) 11. │ └─dplyr (local) ``(``) 12. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 13. └─rlang:::stop_internal_c_lib(...) 14. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:163:3'): Integrating a SpatialPolygon on a mesh domain ── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(fmexample$mesh, samplers = fmexample_sp()$boundary_sp[[1]]) at test-01-integration.R:163:3 2. ├─fmesher:::fm_int.fm_mesh_2d(fmexample$mesh, samplers = fmexample_sp()$boundary_sp[[1]]) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.Spatial(...) 5. │ ├─fmesher::fm_int_mesh_2d(...) 6. │ └─fmesher:::fm_int_mesh_2d.sf(...) 7. │ ├─fmesher::fm_int_mesh_2d(...) 8. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 9. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 10. │ ├─fmesher::new_fm_int(...) 11. │ │ └─base::is.data.frame(object) 12. │ ├─base::do.call(dplyr::bind_rows, ipsl) 13. │ └─dplyr (local) ``(``) 14. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 15. └─rlang:::stop_internal_c_lib(...) 16. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:174:3'): Conversion of whole 2D mesh to integration points ── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(fmexample$mesh) at test-01-integration.R:174:3 2. ├─fmesher:::fm_int.fm_mesh_2d(fmexample$mesh) 3. │ └─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d_NULL(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:211:3'): Polygon integration with holes ─────── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(m, plyA, int.args = list(method = "direct", nsub2 = 1)) at test-01-integration.R:211:3 2. ├─fmesher:::fm_int.fm_mesh_2d(...) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:273:3'): Flat mesh integration ──────────────── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(mesh, int.args = list(nsub2 = 0)) at test-01-integration.R:273:3 2. ├─fmesher:::fm_int.fm_mesh_2d(mesh, int.args = list(nsub2 = 0)) 3. │ └─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d_NULL(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:282:3'): Sphere and globe mesh integration ──── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(mesh, int.args = list(nsub2 = 0)) at test-01-integration.R:282:3 2. ├─fmesher:::fm_int.fm_mesh_2d(mesh, int.args = list(nsub2 = 0)) 3. │ └─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d_NULL(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:325:3'): Globe polygon integration ──────────── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(mesh, samplers = poly, int.args = list(nsub = 2)) at test-01-integration.R:325:3 2. ├─fmesher:::fm_int.fm_mesh_2d(mesh, samplers = poly, int.args = list(nsub = 2)) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) ── Error ('test-01-integration.R:458:3'): Block integration has correct result order ── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─fmesher::fm_int(...) at test-01-integration.R:458:3 2. ├─fmesher:::fm_int.fm_mesh_2d(...) 3. │ ├─fmesher::fm_int_mesh_2d(...) 4. │ └─fmesher:::fm_int_mesh_2d.sfc_POLYGON(...) 5. │ └─fmesher:::fm_int_mesh_2d_polygon(...) 6. │ ├─fmesher::new_fm_int(...) 7. │ │ └─base::is.data.frame(object) 8. │ ├─base::do.call(dplyr::bind_rows, ipsl) 9. │ └─dplyr (local) ``(``) 10. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 11. └─rlang:::stop_internal_c_lib(...) 12. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) [ FAIL 9 | WARN 0 | SKIP 0 | PASS 247 ] Error: ! Test failures. Execution halted Package: hydroloom [Old version: 1.1.1, New version: 1.1.3] Check: tests New result: ERROR Running ‘testthat.R’ [86s/45s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(hydroloom) > > test_check("hydroloom") Starting 2 test processes. Saving _problems/test_add_pfafstetter-7.R [ FAIL 1 | WARN 2 | SKIP 1 | PASS 482 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test_add_levelpaths.R:160:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_add_pfafstetter.R:7:3'): get_pfaf ────────────────────────────── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `double`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─base::source(system.file("extdata/nhdplushr_data.R", package = "nhdplusTools")) at test_add_pfafstetter.R:7:3 2. │ ├─base::withVisible(eval(ei, envir)) 3. │ └─base::eval(ei, envir) 4. │ └─base::eval(ei, envir) 5. ├─base::suppressWarnings(...) 6. │ └─base::withCallingHandlers(...) 7. ├─nhdplusTools::get_nhdplushr(...) 8. │ └─dplyr::bind_rows(layer_set) 9. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 10. └─rlang:::stop_internal_c_lib(...) 11. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) [ FAIL 1 | WARN 2 | SKIP 1 | PASS 482 ] Error: ! Test failures. Execution halted Package: ineAtlas Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘ineAtlas-income-voting.Rmd’ using rmarkdown Quitting from ineAtlas-income-voting.Rmd:49-56 [elections-data] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `download.file()`: ! cannot open URL 'https://datos.comunidad.madrid/catalogo/dataset/08aac4de-ca28-4f9c-b45d-ef8457c4b5d2/resource/5e8cf4ad-b9f4-4ffd-a026-c27433e7815f/download/datos_electorales_elecciones_autonomicas_comunidad_de_madrid_2021.csv' --- Backtrace: ▆ 1. ├─... %>% as_tibble() 2. ├─tibble::as_tibble(.) 3. └─data.table::fread(...) 4. └─utils::download.file(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'ineAtlas-income-voting.Rmd' failed with diagnostics: cannot open URL 'https://datos.comunidad.madrid/catalogo/dataset/08aac4de-ca28-4f9c-b45d-ef8457c4b5d2/resource/5e8cf4ad-b9f4-4ffd-a026-c27433e7815f/download/datos_electorales_elecciones_autonomicas_comunidad_de_madrid_2021.csv' --- failed re-building ‘ineAtlas-income-voting.Rmd’ --- re-building ‘mapping-with-ineatlas.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘mapping-with-ineatlas.Rmd’ SUMMARY: processing the following file failed: ‘ineAtlas-income-voting.Rmd’ Error: Vignette re-building failed. Execution halted Package: mapme.biodiversity Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘quickstart.Rmd’ using rmarkdown Quitting from quickstart.Rmd:227-236 [plot-treecover] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `vec_rbind()`: ! `proxy` of type `list` incompatible with `value` proxy of type `character`. ℹ In file 'slice-assign.c' at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. --- Backtrace: ▆ 1. ├─mapme.biodiversity::portfolio_long(aoi) 2. │ └─... %>% purrr::list_rbind() 3. └─purrr::list_rbind(.) 4. └─vctrs::vec_rbind(!!!x, .names_to = names_to, .ptype = ptype, .error_call = current_env()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'quickstart.Rmd' failed with diagnostics: `proxy` of type `list` incompatible with `value` proxy of type `character`. ℹ In file 'slice-assign.c' at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. --- failed re-building ‘quickstart.Rmd’ --- re-building ‘terminology.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘terminology.Rmd’ SUMMARY: processing the following file failed: ‘quickstart.Rmd’ Error: Vignette re-building failed. Execution halted Package: mapme.biodiversity Check: tests New result: ERROR Running ‘testthat.R’ [73s/95s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(mapme.biodiversity) > > options(pillar.advice = FALSE) > mapme_options(verbose = FALSE) > test_check("mapme.biodiversity") You agreed to abide to ACLED's Terms of Use (https://acleddata.com/terms-of-use/). Resource 'gsw_time_series' is already available. Resource 'gfw_treecover' is already available. Resource 'gfw_lossyear' is already available. Resource 'key_biodiversity_areas' is already available. adding: gfw_sample.gpkg (deflated 96%) [ FAIL 1 | WARN 0 | SKIP 43 | PASS 541 ] ══ Skipped tests (43) ══════════════════════════════════════════════════════════ • On CRAN (43): 'test-calc_burned_area.R:2:3', 'test-calc_carbon.R:3:3', 'test-calc_carbon.R:38:3', 'test-calc_carbon.R:72:3', 'test-calc_deforestation_drivers.R:2:3', 'test-calc_drought_indicator.R:1:1', 'test-calc_elevation.R:1:1', 'test-calc_landcover.R:2:3', 'test-calc_population_count.R:1:1', 'test-calc_precipitation_chelsa.R:1:1', 'test-calc_precipitation_wc.R:1:1', 'test-calc_slope.R:1:1', 'test-calc_soilproperties.R:2:3', 'test-calc_temperature_max_wc.R:1:1', 'test-calc_temperature_min_wc.R:1:1', 'test-calc_traveltime.R:1:1', 'test-calc_traveltime_2000.R:1:1', 'test-calc_treecover_area.R:72:1', 'test-calc_treecover_area_and_emissions.R:1:1', 'test-calc_treecoverloss_emissions.R:1:1', 'test-calc_tri.R:1:1', 'test-get_carbon.R:2:3', 'test-get_carbon.R:29:3', 'test-get_chelsa.R:2:3', 'test-get_esalandcover.R:2:3', 'test-get_fritz_et_al.R:2:3', 'test-get_gfw_emissions.R:2:3', 'test-get_gfw_lossyear.R:2:3', 'test-get_gfw_treecover.R:7:3', 'test-get_gmw.R:2:3', 'test-get_gsw.R:2:3', 'test-get_hfp.R:10:3', 'test-get_mcd64A1.R:2:3', 'test-get_nasa_grace.R:2:3', 'test-get_nasa_srtm.R:2:3', 'test-get_nelson_et_al.R:2:3', 'test-get_resources.R:2:3', 'test-get_soilgrids.R:2:3', 'test-get_teow.R:2:3', 'test-get_ucdp_ged.R:3:3', 'test-get_worldpop.R:2:3', 'test-ipbes.R:2:3', 'test-ipbes.R:11:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-portfolio.R:173:3'): portfolio helpers work as expected ──────── Error in `vec_rbind(!!!x, .names_to = names_to, .ptype = ptype, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `integer`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─testthat::expect_silent(portfolio_long(x)) at test-portfolio.R:173:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─mapme.biodiversity::portfolio_long(x) 10. │ └─... %>% purrr::list_rbind() 11. ├─purrr::list_rbind(.) 12. │ └─vctrs::vec_rbind(!!!x, .names_to = names_to, .ptype = ptype, .error_call = current_env()) 13. └─rlang:::stop_internal_c_lib(...) 14. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) [ FAIL 1 | WARN 0 | SKIP 43 | PASS 541 ] Error: ! Test failures. Execution halted Package: move2 Check: tests New result: ERROR Running ‘testthat.R’ [69s/69s] 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.12.1, PROJ 9.7.1; sf_use_s2() is TRUE Saving _problems/test-mt_stack-99.R [ FAIL 1 | WARN 0 | SKIP 17 | PASS 751 ] ══ Skipped tests (17) ══════════════════════════════════════════════════════════ • On CRAN (15): 'test-calculate_properties.R:25:3', 'test-movebank_api.R:156:3', 'test-movebank_api.R:186:3', 'test-movebank_api.R:208:3', 'test-movebank_api.R:241:3', 'test-movebank_api.R:265:3', 'test-movebank_api.R:298:3', 'test-movebank_api.R:306:3', 'test-movebank_api.R:316:3', 'test-movebank_api.R:334:3', 'test-movebank_api.R:360: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:197:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-mt_stack.R:93:3'): mt_stack with different types ─────────────── Error: CRS mismatch: NA vs EPSG:4326 Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-mt_stack.R:93:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) 4. │ └─testthat:::expect_condition_matching_(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─move2::mt_stack(...) 10. └─dplyr::bind_rows(dots) 11. └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 12. └─vctrs (local) ``() 13. └─sf:::vec_ptype2.sf.sf(...) 14. └─sf:::sf_ptype2(x, y, ...) 15. └─vctrs::df_ptype2(x, y, ...) 16. └─vctrs (local) ``() 17. └─sf:::vec_ptype2.sfc_POINT.sfc_POINT(...) 18. └─sf:::vec_ptype2_impl(x, y) 19. └─sf:::check_same_crs(x, y) [ FAIL 1 | WARN 0 | SKIP 17 | PASS 751 ] Error: ! Test failures. Execution halted Package: nhdplusTools Check: tests New result: ERROR Running ‘testthat.R’ [55s/34s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library("testthat") > > test_check("nhdplusTools") Loading required package: nhdplusTools Starting 2 test processes. Saving _problems/test_calc_network-60.R > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_run_plus_attributes.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_run_plus_attributes.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. [ FAIL 1 | WARN 0 | SKIP 58 | PASS 309 ] ══ Skipped tests (58) ══════════════════════════════════════════════════════════ • On CRAN (58): 'test_00_plot_bbox_nhdplus.R:5:3', 'test_00_plot_local_extra_nhdplus.R:9:3', 'test_00_plot_integration_nhdplus.R:6:3', 'test_00_plot_local_nhdplus.R:9:3', 'test_01_get_nldi.R:5:3', 'test_01_get_nldi.R:25:3', 'test_01_get_nldi.R:85:3', 'test_01_get_nldi.R:122:3', 'test_01_get_nldi.R:140:3', 'test_01_get_nldi.R:176:3', 'test_01_get_nldi.R:224:3', 'test_00_plot_nhdplus.R:6:3', 'test_00_plot_nhdplus.R:90:3', 'test_00_plot_nhdplus.R:134:3', 'test_00_plot_nhdplus.R:164:3', 'test_00_plot_nhdplus.R:201:3', 'test_02_subset.R:137:3', 'test_02_subset.R:193:3', 'test_03_get_functions.R:20:3', 'test_03_get_functions.R:52:3', 'test_03_get_functions.R:75:3', 'test_03_get_functions.R:129:3', 'test_03_get_functions.R:200:3', 'test_03_get_functions.R:216:3', 'test_03_get_functions.R:229:3', 'test_03_get_functions.R:247:3', 'test_03_get_functions.R:254:3', 'test_arcrest.R:51:3', 'test_02_subset_extras.R:94:3', 'test_02_subset_extras.R:149:3', 'test_geoconnex.R:3:3', 'test_geoconnex.R:14:3', 'test_get_3dhp.R:3:3', 'test_get_nhdphr.R:3:3', 'test_get_nhdplus.R:8:3', 'test_get_nhdplus.R:29:3', 'test_get_nhdplus.R:49:3', 'test_get_nhdplushr.R:3:3', 'test_get_nhdplushr.R:23:3', 'test_get_nhdplushr.R:53:3', 'test_get_nhdplushr.R:80:3', 'test_get_nhdplushr.R:101:3', 'test_get_nhdplushr.R:147:3', 'test_get_nhdplushr.R:174:3', 'test_get_nhdplushr.R:196:3', 'test_get_codes.R:4:3', 'test_get_vaa.R:4:3', 'test_get_vaa.R:38:3', 'test_get_path.R:69:3', 'test_map_nhdplus.R:4:3', 'test_navigate.R:4:3', 'test_navigate.R:71:3', 'test_index.R:13:5', 'test_index.R:61:3', 'test_nhdplusTools.R:41:3', 'test_nhdplusTools.R:50:3', 'test_rescale_catchments.R:3:3', 'test_run_plus_attributes.R:21:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_calc_network.R:59:3'): get_terminal ──────────────────────────── Error in `vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())`: `proxy` of type `list` incompatible with `value` proxy of type `double`. i In file 'slice-assign.c' at line 254. i This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─base::suppressMessages(...) at test_calc_network.R:59:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::source(system.file("extdata/nhdplushr_data.R", package = "nhdplusTools")) 4. │ ├─base::withVisible(eval(ei, envir)) 5. │ └─base::eval(ei, envir) 6. │ └─base::eval(ei, envir) 7. ├─base::suppressWarnings(...) 8. │ └─base::withCallingHandlers(...) 9. ├─nhdplusTools::get_nhdplushr(...) 10. │ └─dplyr::bind_rows(layer_set) 11. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 12. └─rlang:::stop_internal_c_lib(...) 13. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) [ FAIL 1 | WARN 0 | SKIP 58 | PASS 309 ] Error: ! Test failures. Execution halted Package: sfnetworks Check: examples New result: ERROR Running examples in ‘sfnetworks-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: spatial_morphers > ### Title: Spatial morphers for sfnetworks > ### Aliases: spatial_morphers to_spatial_contracted to_spatial_directed > ### to_spatial_explicit to_spatial_neighborhood to_spatial_shortest_paths > ### to_spatial_simple to_spatial_smooth to_spatial_subdivision > ### to_spatial_subset to_spatial_transformed > > ### ** Examples > > library(sf, quietly = TRUE) Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is TRUE > library(tidygraph, quietly = TRUE) Attaching package: ‘tidygraph’ The following object is masked from ‘package:stats’: filter > > net = as_sfnetwork(roxel, directed = FALSE) %>% + st_transform(3035) > > # Temporary changes with morph and unmorph. > net %>% + activate("edges") %>% + mutate(weight = edge_length()) %>% + morph(to_spatial_shortest_paths, from = 1, to = 10) %>% + mutate(in_paths = TRUE) %>% + unmorph() Error in `vec_rbind()`: ! `proxy` of type `list` incompatible with `value` proxy of type `integer`. ℹ In file 'slice-assign.c' at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─... %>% unmorph() 2. ├─tidygraph::unmorph(.) 3. ├─sfnetworks:::unmorph.morphed_sfnetwork(.) 4. ├─base::NextMethod(.data, ...) 5. ├─tidygraph:::unmorph.morphed_tbl_graph(.) 6. │ └─dplyr::bind_rows(lapply(.data, as_tibble, active = "nodes")) 7. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 8. └─rlang:::stop_internal_c_lib(...) 9. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) Execution halted Package: sfnetworks Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘sfn01_structure.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘sfn01_structure.Rmd’ --- re-building ‘sfn02_preprocess_clean.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘sfn02_preprocess_clean.Rmd’ --- re-building ‘sfn03_join_filter.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘sfn03_join_filter.Rmd’ --- re-building ‘sfn04_routing.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘sfn04_routing.Rmd’ --- re-building ‘sfn05_morphers.Rmd’ using rmarkdown Quitting from sfn05_morphers.Rmd:188-197 [unnamed-chunk-8] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  Error in `vec_rbind()`: ! `proxy` of type `list` incompatible with `value` proxy of type `double`. ℹ In file slice-assign.c at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at  with a reprex () and the full backtrace. --- Backtrace:  ▆  1. ├─... %>% arrange(desc(bc_diff))  2. ├─dplyr::arrange(., desc(bc_diff))  3. ├─dplyr::mutate(., bc_diff = bc_dir - bc_undir)  4. ├─tidygraph::unmorph(.)  5. ├─sfnetworks:::unmorph.morphed_sfnetwork(.)  6. ├─base::NextMethod(.data, ...)  7. └─tidygraph:::unmorph.morphed_tbl_graph(.)  8.  └─dplyr::bind_rows(lapply(.data, as_tibble, active = "nodes"))  9.  └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'sfn05_morphers.Rmd' failed with diagnostics: `proxy` of type `list` incompatible with `value` proxy of type `double`. ℹ In file slice-assign.c at line 254. ℹ This is an internal error that was detected in the vctrs package. Please report it at  with a reprex () and the full backtrace. --- failed re-building ‘sfn05_morphers.Rmd’ SUMMARY: processing the following file failed: ‘sfn05_morphers.Rmd’ Error: Vignette re-building failed. Execution halted