Running examples in ‘swissdd-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_geodata
> ### Title: Get Swiss Geodata
> ### Aliases: get_geodata
> 
> ### ** Examples
> 
> 
> # Get latest geodata at municipal level
> get_geodata()
Simple feature collection with 2144 features and 1 field
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: 485203 ymin: 75284.75 xmax: 834035 ymax: 295863.7
CRS:           NA
First 10 features:
   mun_id                       geometry
1       1 MULTIPOLYGON (((678561.1 23...
2       2 MULTIPOLYGON (((673819.1 23...
3       3 MULTIPOLYGON (((676438.3 24...
4       4 MULTIPOLYGON (((680615.3 23...
5       5 MULTIPOLYGON (((675428.3 24...
6       6 MULTIPOLYGON (((679228.7 23...
7       7 MULTIPOLYGON (((676318.5 23...
8       8 MULTIPOLYGON (((675445.4 23...
9       9 MULTIPOLYGON (((676164.4 23...
10     10 MULTIPOLYGON (((672860.5 23...
> 
> # Get latest geodata at cantonal level
> get_geodata(geolevel = "canton")
Error: Can't rename columns that don't exist.
✖ Column `name` doesn't exist.
Backtrace:
     █
  1. ├─swissdd::get_geodata(geolevel = "canton")
  2. │ └─`%>%`(...)
  3. ├─dplyr::select(., canton_id, geometry)
  4. ├─dplyr::mutate(., canton_id = as.character(canton_id))
  5. ├─dplyr::rename(., canton_name = name)
  6. └─sf:::rename.sf(., canton_name = name)
  7.   └─tidyselect::eval_rename(quote(c(...)), .data)
  8.     └─tidyselect:::rename_impl(...)
  9.       └─tidyselect:::eval_select_impl(...)
 10.         ├─tidyselect:::with_subscript_errors(...)
 11.         │ ├─base::tryCatch(...)
 12.         │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
 13.         │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
 14.         │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
 15.         │ └─tidyselect:::instrument_base_errors(expr)
 16.         │   └─base::withCallingHandlers(...)
 17.         └─tidyselect:::vars_select_eval(...)
 18.           └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
 19.             └─tidyselect:::eval_c(expr, data_mask, context_mask)
 20.               └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
 21.                 └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
 22.                   └─tidyselect:::as_indices_sel_impl(...)
 23.                     └─tidyselect:::as_indices_impl(x, vars, strict = strict)
 24.                       └─tidyselect:::chr_as_locations(x, vars)
 25.                         └─vctrs::vec_as_location(x, n = length(vars), names = vars)
 26.                           └─(function () ...
 27.                             └─vctrs:::stop_subscript_oob(...)
 28.                               └─vctrs:::stop_subscript(...)
Execution halted