Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(biscale)
  > 
  > test_check("biscale")
  [ FAIL 14 | WARN 1 | SKIP 0 | PASS 100 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_bi_scale_color.R:15:3'): missing parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A palette name or a custom palette vector must be specified for the 'pal' argument. Please see bi_pal's help file for a list of included palettes."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:15:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:22:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "The given palette is not one of the allowed options for bivariate mapping. Please see bi_pal's help file for a list of included palettes."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:22:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:26:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "The 'dim' argument only accepts numeric values."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:26:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:30:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A logical scalar must be supplied for 'flip_axes'. Please provide either 'TRUE' or 'FALSE'."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:30:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:34:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A logical scalar must be supplied for 'rotate_pal'. Please provide either 'TRUE' or 'FALSE'."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:34:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:50:3'): correctly specified functions execute without error ──
  `+...` threw an error.
  Message: there is no package called 'sf'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:50:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_color.R:53:3'): correctly specified functions execute without error ──
  `+...` threw an error.
  Message: there is no package called 'sf'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_color.R:53:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:15:3'): missing parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A palette name or a custom palette vector must be specified for the 'pal' argument. Please see bi_pal's help file for a list of included palettes."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:15:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(...)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:22:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "The given palette is not one of the allowed options for bivariate mapping. Please see bi_pal's help file for a list of included palettes."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:22:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(...)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:26:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "The 'dim' argument only accepts numeric values."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:26:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(...)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:30:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A logical scalar must be supplied for 'flip_axes'. Please provide either 'TRUE' or 'FALSE'."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:30:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:34:3'): incorrectly specified parameters trigger appropriate errors ──
  `+...` threw an error with unexpected message.
  Expected match: "A logical scalar must be supplied for 'rotate_pal'. Please provide either 'TRUE' or 'FALSE'."
  Actual message: "there is no package called 'sf'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:34:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:50:3'): correctly specified functions execute without error ──
  `+...` threw an error.
  Message: there is no package called 'sf'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:50:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(...)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test_bi_scale_fill.R:53:3'): correctly specified functions execute without error ──
  `+...` threw an error.
  Message: there is no package called 'sf'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_bi_scale_fill.R:53:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ggplot2::geom_sf(data = data, aes(color = bi_class), show.legend = FALSE)
    7. │ └─ggplot2::coord_sf(default = TRUE)
    8. │   └─ggplot2::ggproto(...)
    9. │     └─rlang::list2(...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 14 | WARN 1 | SKIP 0 | PASS 100 ]
  Error: Test failures
  Execution halted