Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [78s/126s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(r2dii.analysis)
  > 
  > test_check("r2dii.analysis")
  [ FAIL 21 | WARN 77 | SKIP 3 | PASS 217 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-summarize_weighted_production.R:67:3'): with NAs in crucial columns errors with informative message ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─r2dii.analysis (local) expect_error_crucial_NAs("id_loan") at test-summarize_weighted_production.R:67:2
   2.   ├─base::`[<-`(`*tmp*`, 1, name, value = `<lgl>`) at test-summarize_weighted_production.R:60:4
   3.   └─tibble:::`[<-.tbl_df`(`*tmp*`, 1, name, value = `<lgl>`) at test-summarize_weighted_production.R:60:4
   4.     └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5.       └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   6.         ├─base::withCallingHandlers(...)
   7.         └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-summarize_weighted_production.R:260:3'): with NAs in crucial columns errors with informative message ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─r2dii.analysis (local) expect_error_crucial_NAs("id_loan") at test-summarize_weighted_production.R:260:2
   2.   ├─base::`[<-`(`*tmp*`, 1, name, value = `<lgl>`) at test-summarize_weighted_production.R:250:4
   3.   └─tibble:::`[<-.tbl_df`(`*tmp*`, 1, name, value = `<lgl>`) at test-summarize_weighted_production.R:250:4
   4.     └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5.       └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   6.         ├─base::withCallingHandlers(...)
   7.         └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_market_share.R:161:3'): w/ NAs in crucial columns, errors with informative message ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─r2dii.analysis (local) expect_error_crucial_NAs_portfolio("name_abcd") at test-target_market_share.R:161:2
   2.   ├─base::`[<-`(`*tmp*`, 1, name, value = `<lgl>`) at test-target_market_share.R:115:4
   3.   └─tibble:::`[<-.tbl_df`(`*tmp*`, 1, name, value = `<lgl>`) at test-target_market_share.R:115:4
   4.     └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5.       └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   6.         ├─base::withCallingHandlers(...)
   7.         └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:5:3'): with fake data outputs known value ─────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(...) at test-target_sda.R:5:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:46:3'): outputs is ungrouped ──────────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(...) at test-target_sda.R:46:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:81:3'): warns when input data is grouped ──────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(out(), "Ungrouping") at test-target_sda.R:81:2
    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. ├─r2dii.analysis (local) out()
    8. │ └─r2dii.analysis::target_sda(...) at test-target_sda.R:67:4
    9. │   └─r2dii.analysis:::compute_loanbook_targets(...)
   10. │     └─... %>% ...
   11. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
   12. ├─dplyr::ungroup(.)
   13. ├─dplyr::mutate(...)
   14. ├─dplyr::arrange(., .data$year)
   15. ├─dplyr::group_by(., ...)
   16. ├─dplyr::right_join(...)
   17. └─dplyr:::right_join.data.frame(...)
   18.   └─dplyr:::join_mutate(...)
   19.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   20.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   21.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   22.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   23.           ├─base::withCallingHandlers(...)
   24.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:154:3'): properly weights emissions factors ───────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(...) at test-target_sda.R:154:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:184:3'): outputs expected names ───────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(...) at test-target_sda.R:184:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:227:3'): with known input outputs as expected ─────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% split(.$emission_factor_metric) at test-target_sda.R:227:2
    2. ├─base::split(., .$emission_factor_metric)
    3. ├─dplyr::arrange(., .data$year)
    4. ├─r2dii.analysis::target_sda(...)
    5. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    6. │   └─... %>% ...
    7. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    8. ├─dplyr::ungroup(.)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::arrange(., .data$year)
   11. ├─dplyr::group_by(., ...)
   12. ├─dplyr::right_join(...)
   13. └─dplyr:::right_join.data.frame(...)
   14.   └─dplyr:::join_mutate(...)
   15.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   17.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   18.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   19.           ├─base::withCallingHandlers(...)
   20.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:393:3'): with NAs in crucial columns errors with informative message (#146) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─r2dii.analysis (local) expect_error_crucial_NAs_portfolio("name_abcd") at test-target_sda.R:393:2
   2.   ├─base::`[<-`(`*tmp*`, 1, name, value = `<lgl>`) at test-target_sda.R:329:4
   3.   └─tibble:::`[<-.tbl_df`(`*tmp*`, 1, name, value = `<lgl>`) at test-target_sda.R:329:4
   4.     └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5.       └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   6.         ├─base::withCallingHandlers(...)
   7.         └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:425:3'): with multiple technologies weights emission_factor as expected (#160) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% split(.$emission_factor_metric) at test-target_sda.R:425:2
    2. ├─base::split(., .$emission_factor_metric)
    3. ├─dplyr::filter(., year == min(year))
    4. ├─r2dii.analysis::target_sda(match_result, abcd, scen, region_isos = region_isos_stable)
    5. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    6. │   └─... %>% ...
    7. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    8. ├─dplyr::ungroup(.)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::arrange(., .data$year)
   11. ├─dplyr::group_by(., ...)
   12. ├─dplyr::right_join(...)
   13. └─dplyr:::right_join.data.frame(...)
   14.   └─dplyr:::join_mutate(...)
   15.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   17.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   18.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   19.           ├─base::withCallingHandlers(...)
   20.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:439:3'): with multiple technologies, aggregates production-weighted emission_factor (#160) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% split(.$emission_factor_metric) at test-target_sda.R:439:2
    2. ├─base::split(., .$emission_factor_metric)
    3. ├─r2dii.analysis::target_sda(...)
    4. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    5. │   └─... %>% ...
    6. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    7. ├─dplyr::ungroup(.)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr::arrange(., .data$year)
   10. ├─dplyr::group_by(., ...)
   11. ├─dplyr::right_join(...)
   12. └─dplyr:::right_join.data.frame(...)
   13.   └─dplyr:::join_mutate(...)
   14.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   15.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   17.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   18.           ├─base::withCallingHandlers(...)
   19.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:459:3'): with multiple plant_location, aggregates production-weighted emission_factor (#160) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% split(.$emission_factor_metric) at test-target_sda.R:459:2
    2. ├─base::split(., .$emission_factor_metric)
    3. ├─dplyr::filter(., region == "global")
    4. ├─r2dii.analysis::target_sda(...)
    5. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    6. │   └─... %>% ...
    7. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    8. ├─dplyr::ungroup(.)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::arrange(., .data$year)
   11. ├─dplyr::group_by(., ...)
   12. ├─dplyr::right_join(...)
   13. └─dplyr:::right_join.data.frame(...)
   14.   └─dplyr:::join_mutate(...)
   15.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   17.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   18.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   19.           ├─base::withCallingHandlers(...)
   20.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:502:3'): filters and warns when input-data has NAs ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─base::do.call(expect_warning, args) at test-target_sda.R:502:2
    2. ├─testthat (local) `<fn>`(...)
    3. │ └─testthat:::expect_condition_matching(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─r2dii.analysis::target_sda(...)
    9. │ └─r2dii.analysis:::compute_loanbook_targets(...)
   10. │   └─... %>% ...
   11. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
   12. ├─dplyr::ungroup(.)
   13. ├─dplyr::mutate(...)
   14. ├─dplyr::arrange(., .data$year)
   15. ├─dplyr::group_by(., ...)
   16. ├─dplyr::right_join(...)
   17. └─dplyr:::right_join.data.frame(...)
   18.   └─dplyr:::join_mutate(...)
   19.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   20.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   21.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   22.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   23.           ├─base::withCallingHandlers(...)
   24.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:525:3'): filters and warns when input-data (production in abcd) has NAs #304 ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-target_sda.R:525:2
    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. ├─r2dii.analysis::target_sda(matched, abcd, co2_scenario, region_isos = region_isos_stable)
    8. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    9. │   └─... %>% ...
   10. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
   11. ├─dplyr::ungroup(.)
   12. ├─dplyr::mutate(...)
   13. ├─dplyr::arrange(., .data$year)
   14. ├─dplyr::group_by(., ...)
   15. ├─dplyr::right_join(...)
   16. └─dplyr:::right_join.data.frame(...)
   17.   └─dplyr:::join_mutate(...)
   18.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   19.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   20.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   21.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   22.           ├─base::withCallingHandlers(...)
   23.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Failure ('test-target_sda.R:539:5'): `sector` column is not used from data (should only use `sector_abcd`) (#178) ──
  `object` threw an unexpected error.
  Message: DLL requires the use of native symbols
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─r2dii.analysis:::expect_error_free(...) at test-target_sda.R:539:4
    2. │ └─testthat::expect_error(object, regexp = NA) at tests/testthat/helper-cnd.R:2:2
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─r2dii.analysis::target_sda(...)
    9. │ └─r2dii.analysis:::compute_loanbook_targets(...)
   10. │   └─... %>% ...
   11. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
   12. ├─dplyr::ungroup(.)
   13. ├─dplyr::mutate(...)
   14. ├─dplyr::arrange(., .data$year)
   15. ├─dplyr::group_by(., ...)
   16. ├─dplyr::right_join(...)
   17. └─dplyr:::right_join.data.frame(...)
   18.   └─dplyr:::join_mutate(...)
   19.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   20.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   21.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   22.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   23.           ├─base::withCallingHandlers(...)
   24.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:576:3'): with multiple values of `country_of_domicile` outputs the expected
            `emission_factor_value` (#171) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% split(.$emission_factor_metric) at test-target_sda.R:576:2
    2. ├─base::split(., .$emission_factor_metric)
    3. ├─r2dii.analysis::target_sda(...)
    4. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    5. │   └─... %>% ...
    6. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    7. ├─dplyr::ungroup(.)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr::arrange(., .data$year)
   10. ├─dplyr::group_by(., ...)
   11. ├─dplyr::right_join(...)
   12. └─dplyr:::right_join.data.frame(...)
   13.   └─dplyr:::join_mutate(...)
   14.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   15.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   17.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   18.           ├─base::withCallingHandlers(...)
   19.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:618:3'): outputs same target regardless of years present in abcd ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─... %>% ... at test-target_sda.R:618:2
    2. ├─dplyr::filter(., year == 2030, emission_factor_metric == "target_b2ds")
    3. ├─r2dii.analysis::target_sda(...)
    4. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    5. │   └─... %>% ...
    6. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    7. ├─dplyr::ungroup(.)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr::arrange(., .data$year)
   10. ├─dplyr::group_by(., ...)
   11. ├─dplyr::right_join(...)
   12. └─dplyr:::right_join.data.frame(...)
   13.   └─dplyr:::join_mutate(...)
   14.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   15.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   16.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   17.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   18.           ├─base::withCallingHandlers(...)
   19.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:662:3'): outputs only sectors present in `co2_intensity_scenario` (#308) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(matched, abcd, co2_scenario, region_isos = region_isos_stable) at test-target_sda.R:662:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:694:3'): doesn't output NAs if abcd and scenario years are misaligned (#307,
            #346) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(matched, abcd, co2_scenario, region_isos = region_isos_stable) at test-target_sda.R:694:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test-target_sda.R:783:3'): outputs empty tibble for sectors in `scenario` and `abcd` but not
            `data` (#390) ──
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─r2dii.analysis::target_sda(...) at test-target_sda.R:783:2
    2. │ └─r2dii.analysis:::compute_loanbook_targets(...)
    3. │   └─... %>% ...
    4. ├─dplyr::select(., ..., all_of(c("year", "emission_factor_target")))
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::mutate(...)
    7. ├─dplyr::arrange(., .data$year)
    8. ├─dplyr::group_by(., ...)
    9. ├─dplyr::right_join(...)
   10. └─dplyr:::right_join.data.frame(...)
   11.   └─dplyr:::join_mutate(...)
   12.     ├─base::`[<-`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   13.     └─tibble:::`[<-.tbl_df`(`*tmp*`, new_rows, merge, value = `<tibble[,4]>`)
   14.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   15.         └─tibble:::tbl_subassign_row(xj, i, value, i_arg, value_arg, call)
   16.           ├─base::withCallingHandlers(...)
   17.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  
  [ FAIL 21 | WARN 77 | SKIP 3 | PASS 217 ]
  Error: Test failures
  Execution halted