* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/epiflows.Rcheck’ * using R Under development (unstable) (2023-03-28 r84103) * using platform: x86_64-pc-linux-gnu (64-bit) * R was compiled by gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) GNU Fortran (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) * running under: Fedora 34 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘epiflows/DESCRIPTION’ ... OK * this is package ‘epiflows’ version ‘0.2.0’ * 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 ‘epiflows’ can be installed ... OK * checking package directory ... OK * checking ‘build’ 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 startup messages can be suppressed ... OK * checking dependencies in R code ... NOTE Namespace in Imports field not imported from: ‘htmlwidgets’ All declared Imports should be used. * 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 line widths ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘epiflows-Ex.R’ failed The error most likely occurred in: > ### Name: add_coordinates > ### Title: Add/Retrieve location coordinates > ### Aliases: add_coordinates get_coordinates get_coordinates.epiflows > > ### ** Examples > > > # Setting up the data > data("Brazil_epiflows") > data("YF_coordinates") > get_coordinates(Brazil_epiflows) # no coordinates yet NULL > ef <- add_coordinates(Brazil_epiflows, YF_coordinates[-1]) > get_coordinates(ef) id lon lat 1 Espirito Santo -40.308863 -19.18342 2 Minas Gerais -44.555031 -18.51218 3 Rio de Janeiro -43.172897 -22.90685 4 Sao Paulo -46.633309 -23.55052 5 Southeast Brazil -46.209155 -20.33318 6 Argentina -63.616672 -38.41610 7 Chile -71.542969 -35.67515 8 Germany 10.451526 51.16569 9 Italy 12.567380 41.87194 10 Paraguay -58.443832 -23.44250 11 Portugal -8.224454 39.39987 12 Spain -3.749220 40.46367 13 United Kingdom -3.435973 55.37805 14 United States of America -95.712891 37.09024 15 Uruguay -55.765835 -32.52278 > get_coordinates(ef, location = "Espirito Santo") # coordinates for Espirito Santo [1] -40.30886 -19.18342 > ## No test: > # You can use google maps' geocode functionality if you have a decent > # internet connection > ef2 <- add_coordinates(Brazil_epiflows, loc_column = "id") Error in `ggmap::geocode()`: ! Google now requires an API key; see `ggmap::register_google()`. Backtrace: ▆ 1. └─epiflows::add_coordinates(Brazil_epiflows, loc_column = "id") 2. └─ggmap::geocode(as.character(the_locations)) 3. └─cli::cli_abort("Google now requires an API key; see {.fn ggmap::register_google}.") 4. └─rlang::abort(...) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [24s/25s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/data/blackswan/ripley/R/packages/tests-devel/epiflows.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:03.62, 55.54 + 7.62