Error(s) in re-building vignettes:
  ...
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘cvdprevent-Ex.R’ failed
The error most likely occurred in:

> ### Name: cvd_area_details
> ### Title: Area details
> ### Aliases: cvd_area_details
> 
> ### ** Examples
> 
> # to see details for '3 Centres PCN' (area_id = 1103) use the following:
> # get the list of tibbles from the function
> returned_list <- cvd_area_details(time_period_id = 17, area_id = 1103)
> 
> # view area details
> returned_list$area_details |>
+   dplyr::select(AreaCode, AreaName)
# A tibble: 1 × 2
  AreaCode AreaName     
  <chr>    <chr>        
1 U60176   3 Centres PCN
> 
> # view details for the parent of this area
> returned_list$area_parent_details |>
+   dplyr::select(AreaID, AreaName, SystemLevelID)
# A tibble: 1 × 3
  AreaID AreaName                       SystemLevelID
   <int> <chr>                                  <int>
1   7959 NHS West Yorkshire ICB - X2C4Y             8
> 
> # view details for the children of this area
> returned_list$area_child_details |>
+   dplyr::select(AreaID, AreaName, SystemLevelID)
Error in UseMethod("select") : 
  no applicable method for 'select' applied to an object of class "NULL"
Calls: <Anonymous>
Execution halted
Running ‘testthat.R’ [5s/15s]
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(cvdprevent)
  > 
  > test_check("cvdprevent")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cvd_api_functions.R:73:3'): cvd_area_nested_subsystems works ──
  Names of `test` ('level_1', 'level_2', 'level_3') don't match 'level_1', 'level_2', 'level_3', 'level_4'
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:125-129 [unnamed-chunk-11]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'select' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. ├─gt::gt(...)
 2. │ └─"rowname" %in% names(data)
 3. └─dplyr::select(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'select' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
--- re-building 'using_cvdprevent.Rmd' using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building 'using_cvdprevent.Rmd'

SUMMARY: processing the following file failed:
  'using_cvdprevent.Rmd'

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘using_cvdprevent.Rmd’ using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building ‘using_cvdprevent.Rmd’

SUMMARY: processing the following file failed:
  ‘using_cvdprevent.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
--- re-building 'using_cvdprevent.Rmd' using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building 'using_cvdprevent.Rmd'

SUMMARY: processing the following file failed:
  'using_cvdprevent.Rmd'

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
--- re-building 'using_cvdprevent.Rmd' using rmarkdown

Quitting from using_cvdprevent.Rmd:182-185 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'group_vars' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. └─gt::gt(return_list$level_2)
 2.   └─dplyr::group_vars(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'using_cvdprevent.Rmd' failed with diagnostics:
no applicable method for 'group_vars' applied to an object of class "NULL"
--- failed re-building 'using_cvdprevent.Rmd'

SUMMARY: processing the following file failed:
  'using_cvdprevent.Rmd'

Error: Vignette re-building failed.
Execution halted