CRAN Package Check Results for Package globaltrends

Last updated on 2022-09-11 12:56:19 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.12 12.96 226.92 239.88 NOTE
r-devel-linux-x86_64-debian-gcc 0.0.12 10.11 79.39 89.50 ERROR
r-devel-linux-x86_64-fedora-clang 0.0.12 309.78 NOTE
r-devel-linux-x86_64-fedora-gcc 0.0.12 299.96 NOTE
r-devel-windows-x86_64 0.0.12 62.00 256.00 318.00 NOTE
r-patched-linux-x86_64 0.0.12 12.24 208.22 220.46 OK
r-release-linux-x86_64 0.0.12 12.72 212.42 225.14 OK
r-release-macos-arm64 0.0.12 114.00 OK
r-release-macos-x86_64 0.0.12 140.00 OK
r-release-windows-x86_64 0.0.12 63.00 264.00 327.00 OK
r-oldrel-macos-arm64 0.0.12 107.00 OK
r-oldrel-macos-x86_64 0.0.12 143.00 OK
r-oldrel-windows-ix86+x86_64 0.0.12 27.00 126.00 153.00 ERROR

Check Details

Version: 0.0.12
Check: package subdirectories
Result: NOTE
    Problems with news in 'NEWS.md':
    No news entries found.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64

Version: 0.0.12
Check: tests
Result: ERROR
     Running ‘test_functions.r’ [0s/1s]
     Running ‘testthat.r’ [4s/50s]
    Running the tests in ‘tests/testthat.r’ failed.
    Complete output:
     > library(testthat)
     > library(globaltrends)
     >
     > test_check("globaltrends")
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 2 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-24months.R:6:1): (code run outside of `test_that()`) ────────────
     Error in `WDI::WDI(country = countries$location, indicator = "NY.GDP.MKTP.KD",
     start = 2018, end = 2018)`: The following indicators could not be downloaded: NY.GDP.MKTP.KD.
    
     Please make sure that you are running the latest version of the `WDI` package, and that the arguments you are using in the `WDI()` function are valid.
    
     Sometimes, downloads will suddenly stop working, even if nothing has changed in the R code of the WDI package. ("The same WDI package version worked yesterday!") In those cases, the problem is almost certainly related to the World Bank servers or to your internet connection.
    
     You can check if the World Bank web API is currently serving the indicator(s) of interest by typing a URL of this form in your web browser:
    
     https://api.worldbank.org/v2/en/country/all/indicator/NY.GDP.MKTP.KD?format=json&date=1960:2020&per_page=32500&page=1
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-24months.R:6:0
     2. └─globaltrends:::.enter_location(globaltrends_db = globaltrends_db)
     3. └─WDI::WDI(...)
     ── Error (test-abnorm.R:8:1): (code run outside of `test_that()`) ──────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-abnorm.R:8:0
     ── Error (test-computations.R:8:1): (code run outside of `test_that()`) ────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-computations.R:8:0
     ── Error (test-db_functions.R:3:3): initialize ─────────────────────────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. ├─testthat::capture_messages(initialize_db()) at test-db_functions.R:3:2
     2. │ └─base::withCallingHandlers(...)
     3. └─globaltrends::initialize_db()
     ── Error (test-db_functions.R:74:3): start1 ────────────────────────────────────
     <Rcpp::exception/C++Error/error/condition>
     Error: no such table: data_doi
     Backtrace:
     ▆
     1. ├─testthat::capture_messages(start_db()) at test-db_functions.R:74:2
     2. │ └─base::withCallingHandlers(...)
     3. └─globaltrends::start_db()
     4. ├─dplyr::tbl(globaltrends_db, "data_doi")
     5. └─dplyr:::tbl.DBIConnection(globaltrends_db, "data_doi")
     6. ├─dplyr::tbl(...)
     7. └─dbplyr:::tbl.src_dbi(...)
     8. └─dbplyr::tbl_sql(c(subclass, "dbi"), src = src, from = from, ...)
     9. ├─vars %||% dbplyr_query_fields(src$con, from)
     10. └─dbplyr:::dbplyr_query_fields(src$con, from)
     11. └─dbplyr:::dbplyr_fallback(con, "db_query_fields", ...)
     12. ├─rlang::eval_bare(expr((!!fun)(con, ...)))
     13. └─dbplyr:::db_query_fields.DBIConnection(con, ...)
     14. ├─DBI::dbGetQuery(con, sql)
     15. └─DBI::dbGetQuery(con, sql)
     16. └─DBI (local) .local(conn, statement, ...)
     17. ├─DBI::dbSendQuery(conn, statement, ...)
     18. └─RSQLite::dbSendQuery(conn, statement, ...)
     19. └─RSQLite (local) .local(conn, statement, ...)
     20. ├─methods::new(...)
     21. │ ├─methods::initialize(value, ...)
     22. │ └─methods::initialize(value, ...)
     23. └─RSQLite:::result_create(conn@ptr, statement)
     ── Error (test-db_functions.R:109:3): disconnect ───────────────────────────────
     <Rcpp::exception/C++Error/error/condition>
     Error: no such table: data_doi
     Backtrace:
     ▆
     1. └─globaltrends::start_db() at test-db_functions.R:109:2
     2. ├─dplyr::tbl(globaltrends_db, "data_doi")
     3. └─dplyr:::tbl.DBIConnection(globaltrends_db, "data_doi")
     4. ├─dplyr::tbl(...)
     5. └─dbplyr:::tbl.src_dbi(...)
     6. └─dbplyr::tbl_sql(c(subclass, "dbi"), src = src, from = from, ...)
     7. ├─vars %||% dbplyr_query_fields(src$con, from)
     8. └─dbplyr:::dbplyr_query_fields(src$con, from)
     9. └─dbplyr:::dbplyr_fallback(con, "db_query_fields", ...)
     10. ├─rlang::eval_bare(expr((!!fun)(con, ...)))
     11. └─dbplyr:::db_query_fields.DBIConnection(con, ...)
     12. ├─DBI::dbGetQuery(con, sql)
     13. └─DBI::dbGetQuery(con, sql)
     14. └─DBI (local) .local(conn, statement, ...)
     15. ├─DBI::dbSendQuery(conn, statement, ...)
     16. └─RSQLite::dbSendQuery(conn, statement, ...)
     17. └─RSQLite (local) .local(conn, statement, ...)
     18. ├─methods::new(...)
     19. │ ├─methods::initialize(value, ...)
     20. │ └─methods::initialize(value, ...)
     21. └─RSQLite:::result_create(conn@ptr, statement)
     ── Error (test-downloads.R:8:1): (code run outside of `test_that()`) ───────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-downloads.R:8:0
     ── Error (test-export.R:8:1): (code run outside of `test_that()`) ──────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-export.R:8:0
     ── Error (test-keywords.R:7:1): (code run outside of `test_that()`) ────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-keywords.R:7:0
     ── Error (test-locations.R:8:1): (code run outside of `test_that()`) ───────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-locations.R:8:0
     ── Error (test-plot_bar.R:9:1): (code run outside of `test_that()`) ────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-plot_bar.R:9:0
     ── Error (test-plot_box.R:9:1): (code run outside of `test_that()`) ────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-plot_box.R:9:0
     ── Error (test-plot_map.R:9:1): (code run outside of `test_that()`) ────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-plot_map.R:9:0
     ── Error (test-plot_ts.R:9:1): (code run outside of `test_that()`) ─────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-plot_ts.R:9:0
     ── Error (test-plot_voi_doi.R:8:1): (code run outside of `test_that()`) ────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-plot_voi_doi.R:8:0
     ── Error (test-synonyms.R:8:1): (code run outside of `test_that()`) ────────────
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     ▆
     1. └─globaltrends::initialize_db() at test-synonyms.R:8:0
    
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 2 ]
     Error: Test failures
     In addition: Warning message:
     call dbDisconnect() when finished working with a connection
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.0.12
Check: tests
Result: ERROR
     Running 'test_functions.r' [0s]
     Running 'testthat.r' [7s]
    Running the tests in 'tests/testthat.r' failed.
    Complete output:
     > library(testthat)
     > library(globaltrends)
     >
     > test_check("globaltrends")
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 2 ]
    
     == Failed tests ================================================================
     -- Error (test-24months.R:6:1): (code run outside of `test_that()`) ------------
     Error in `WDI::WDI(country = countries$location, indicator = "NY.GDP.MKTP.KD",
     start = 2018, end = 2018)`: The following indicators could not be downloaded: NY.GDP.MKTP.KD.
    
     Please make sure that you are running the latest version of the `WDI` package, and that the arguments you are using in the `WDI()` function are valid.
    
     Sometimes, downloads will suddenly stop working, even if nothing has changed in the R code of the WDI package. ("The same WDI package version worked yesterday!") In those cases, the problem is almost certainly related to the World Bank servers or to your internet connection.
    
     You can check if the World Bank web API is currently serving the indicator(s) of interest by typing a URL of this form in your web browser:
    
     https://api.worldbank.org/v2/en/country/all/indicator/NY.GDP.MKTP.KD?format=json&date=1960:2020&per_page=32500&page=1
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-24months.R:6:0
     2. \-globaltrends:::.enter_location(globaltrends_db = globaltrends_db)
     3. \-WDI::WDI(...)
     -- Error (test-abnorm.R:8:1): (code run outside of `test_that()`) --------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-abnorm.R:8:0
     -- Error (test-computations.R:8:1): (code run outside of `test_that()`) --------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-computations.R:8:0
     -- Error (test-db_functions.R:3:3): initialize ---------------------------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. +-testthat::capture_messages(initialize_db()) at test-db_functions.R:3:2
     2. | \-base::withCallingHandlers(...)
     3. \-globaltrends::initialize_db()
     -- Error (test-db_functions.R:74:3): start1 ------------------------------------
     <Rcpp::exception/C++Error/error/condition>
     Error: no such table: data_doi
     Backtrace:
     x
     1. +-testthat::capture_messages(start_db()) at test-db_functions.R:74:2
     2. | \-base::withCallingHandlers(...)
     3. \-globaltrends::start_db()
     4. +-dplyr::tbl(globaltrends_db, "data_doi")
     5. \-dplyr:::tbl.DBIConnection(globaltrends_db, "data_doi")
     6. +-dplyr::tbl(...)
     7. \-dbplyr:::tbl.src_dbi(...)
     8. \-dbplyr::tbl_sql(c(subclass, "dbi"), src = src, from = from, ...)
     9. +-vars %||% dbplyr_query_fields(src$con, from)
     10. \-dbplyr:::dbplyr_query_fields(src$con, from)
     11. \-dbplyr:::dbplyr_fallback(con, "db_query_fields", ...)
     12. +-rlang::eval_bare(expr((!!fun)(con, ...)))
     13. \-dbplyr:::db_query_fields.DBIConnection(con, ...)
     14. +-DBI::dbGetQuery(con, sql)
     15. \-DBI::dbGetQuery(con, sql)
     16. \-DBI (local) .local(conn, statement, ...)
     17. +-DBI::dbSendQuery(conn, statement, ...)
     18. \-RSQLite::dbSendQuery(conn, statement, ...)
     19. \-RSQLite (local) .local(conn, statement, ...)
     20. +-methods::new(...)
     21. | +-methods::initialize(value, ...)
     22. | \-methods::initialize(value, ...)
     23. \-RSQLite:::result_create(conn@ptr, statement)
     -- Error (test-db_functions.R:109:3): disconnect -------------------------------
     <Rcpp::exception/C++Error/error/condition>
     Error: no such table: data_doi
     Backtrace:
     x
     1. \-globaltrends::start_db() at test-db_functions.R:109:2
     2. +-dplyr::tbl(globaltrends_db, "data_doi")
     3. \-dplyr:::tbl.DBIConnection(globaltrends_db, "data_doi")
     4. +-dplyr::tbl(...)
     5. \-dbplyr:::tbl.src_dbi(...)
     6. \-dbplyr::tbl_sql(c(subclass, "dbi"), src = src, from = from, ...)
     7. +-vars %||% dbplyr_query_fields(src$con, from)
     8. \-dbplyr:::dbplyr_query_fields(src$con, from)
     9. \-dbplyr:::dbplyr_fallback(con, "db_query_fields", ...)
     10. +-rlang::eval_bare(expr((!!fun)(con, ...)))
     11. \-dbplyr:::db_query_fields.DBIConnection(con, ...)
     12. +-DBI::dbGetQuery(con, sql)
     13. \-DBI::dbGetQuery(con, sql)
     14. \-DBI (local) .local(conn, statement, ...)
     15. +-DBI::dbSendQuery(conn, statement, ...)
     16. \-RSQLite::dbSendQuery(conn, statement, ...)
     17. \-RSQLite (local) .local(conn, statement, ...)
     18. +-methods::new(...)
     19. | +-methods::initialize(value, ...)
     20. | \-methods::initialize(value, ...)
     21. \-RSQLite:::result_create(conn@ptr, statement)
     -- Error (test-downloads.R:8:1): (code run outside of `test_that()`) -----------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-downloads.R:8:0
     -- Error (test-export.R:8:1): (code run outside of `test_that()`) --------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-export.R:8:0
     -- Error (test-keywords.R:7:1): (code run outside of `test_that()`) ------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-keywords.R:7:0
     -- Error (test-locations.R:8:1): (code run outside of `test_that()`) -----------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-locations.R:8:0
     -- Error (test-plot_bar.R:9:1): (code run outside of `test_that()`) ------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-plot_bar.R:9:0
     -- Error (test-plot_box.R:9:1): (code run outside of `test_that()`) ------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-plot_box.R:9:0
     -- Error (test-plot_map.R:9:1): (code run outside of `test_that()`) ------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-plot_map.R:9:0
     -- Error (test-plot_ts.R:9:1): (code run outside of `test_that()`) -------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-plot_ts.R:9:0
     -- Error (test-plot_voi_doi.R:8:1): (code run outside of `test_that()`) --------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-plot_voi_doi.R:8:0
     -- Error (test-synonyms.R:8:1): (code run outside of `test_that()`) ------------
     Error in `initialize_db()`: Error: File 'db/globaltrends_db.sqlite' already exists.
     Backtrace:
     x
     1. \-globaltrends::initialize_db() at test-synonyms.R:8:0
    
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 2 ]
     Error: Test failures
     In addition: Warning message:
     call dbDisconnect() when finished working with a connection
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64