* using log directory ‘/Users/ripley/R/packages/tests-devel/swissdd.Rcheck’ * using R Under development (unstable) (2022-01-20 r81528) * using platform: aarch64-apple-darwin21.2.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘swissdd/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘swissdd’ version ‘1.1.4’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘swissdd’ can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [2s/73s] ERROR Running examples in ‘swissdd-Ex.R’ failed The error most likely occurred in: > ### 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 * checking PDF version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/swissdd.Rcheck/00check.log’ for details. 99.65 real 22.21 user 4.45 sys