Running ‘run-all.R’ [11s/26s]
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("ProjectTemplate")
  Loading required package: ProjectTemplate
  
  ══ Testing 1.R ═════════════════════════════════════════════════════════════════
  
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] Done!
  
  ══ Testing 1.R ═════════════════════════════════════════════════════════════════
  
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] Done!
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] TRUE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-qs.R:25:3): re-caching is skipped when a cached variable hasnt changed ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. └─ProjectTemplate::cache(var_to_cache, CODE = NULL, depends = NULL) test-qs.R:25:2
    2.   └─ProjectTemplate:::.read.cache.info(variable)
    3.     ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
    4.     │ ├─base::structure(...)
    5.     │ ├─base::as.list(...)
    6.     │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
    7.     │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
    8.     └─ProjectTemplate:::.cache.format()
    9.       └─ProjectTemplate::require.package(cache_format[["package"]])
   10.         └─utils::install.packages(package.name)
   11.           ├─base::startsWith(contriburl, "file:")
   12.           └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:62:3): re-caching is done again when a cached variable has changed ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. └─ProjectTemplate::cache(var_to_cache, CODE = NULL, depends = NULL) test-qs.R:62:2
    2.   └─ProjectTemplate:::.read.cache.info(variable)
    3.     ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
    4.     │ ├─base::structure(...)
    5.     │ ├─base::as.list(...)
    6.     │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
    7.     │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
    8.     └─ProjectTemplate:::.cache.format()
    9.       └─ProjectTemplate::require.package(cache_format[["package"]])
   10.         └─utils::install.packages(package.name)
   11.           ├─base::startsWith(contriburl, "file:")
   12.           └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:109:3): re-caching fails with correct message if cached variable is not in global env ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. └─ProjectTemplate::cache(var_to_cache, CODE = NULL, depends = NULL) test-qs.R:109:2
    2.   └─ProjectTemplate:::.read.cache.info(variable)
    3.     ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
    4.     │ ├─base::structure(...)
    5.     │ ├─base::as.list(...)
    6.     │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
    7.     │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
    8.     └─ProjectTemplate:::.cache.format()
    9.       └─ProjectTemplate::require.package(cache_format[["package"]])
   10.         └─utils::install.packages(package.name)
   11.           ├─base::startsWith(contriburl, "file:")
   12.           └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:149:3): re-caching a variable created from CODE only happens if code changes, not comments or white space ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-qs.R:149:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─ProjectTemplate::cache(...)
    7.   └─ProjectTemplate:::.read.cache.info(variable)
    8.     ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
    9.     │ ├─base::structure(...)
   10.     │ ├─base::as.list(...)
   11.     │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
   12.     │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
   13.     └─ProjectTemplate:::.cache.format()
   14.       └─ProjectTemplate::require.package(cache_format[["package"]])
   15.         └─utils::install.packages(package.name)
   16.           ├─base::startsWith(contriburl, "file:")
   17.           └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:221:3): auto loaded data is cached by default ──────────────
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. ├─base::suppressMessages(load.project()) test-qs.R:221:2
    2. │ └─base::withCallingHandlers(...)
    3. └─ProjectTemplate::load.project()
    4.   └─ProjectTemplate:::.load.data(config, my.project.info)
    5.     └─ProjectTemplate:::.list.data(config)
    6.       └─ProjectTemplate:::.is.cached(varnames)
    7.         └─base::vapply(...)
    8.           └─ProjectTemplate:::FUN(X[[i]], ...)
    9.             └─ProjectTemplate:::.read.cache.info(x)
   10.               ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
   11.               │ ├─base::structure(...)
   12.               │ ├─base::as.list(...)
   13.               │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
   14.               │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
   15.               └─ProjectTemplate:::.cache.format()
   16.                 └─ProjectTemplate::require.package(cache_format[["package"]])
   17.                   └─utils::install.packages(package.name)
   18.                     ├─base::startsWith(contriburl, "file:")
   19.                     └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:253:3): auto loaded data is not cached when cached_loaded_data is FALSE ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. ├─base::suppressMessages(load.project()) test-qs.R:253:2
    2. │ └─base::withCallingHandlers(...)
    3. └─ProjectTemplate::load.project()
    4.   └─ProjectTemplate:::.load.data(config, my.project.info)
    5.     └─ProjectTemplate:::.list.data(config)
    6.       └─ProjectTemplate:::.is.cached(varnames)
    7.         └─base::vapply(...)
    8.           └─ProjectTemplate:::FUN(X[[i]], ...)
    9.             └─ProjectTemplate:::.read.cache.info(x)
   10.               ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
   11.               │ ├─base::structure(...)
   12.               │ ├─base::as.list(...)
   13.               │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
   14.               │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
   15.               └─ProjectTemplate:::.cache.format()
   16.                 └─ProjectTemplate::require.package(cache_format[["package"]])
   17.                   └─utils::install.packages(package.name)
   18.                     ├─base::startsWith(contriburl, "file:")
   19.                     └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:287:3): auto loaded data from an R script is cached correctly ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. ├─base::suppressMessages(load.project()) test-qs.R:287:2
    2. │ └─base::withCallingHandlers(...)
    3. └─ProjectTemplate::load.project()
    4.   └─ProjectTemplate:::.load.data(config, my.project.info)
    5.     └─ProjectTemplate:::.list.data(config)
    6.       └─ProjectTemplate:::.is.cached(varnames)
    7.         └─base::vapply(...)
    8.           └─ProjectTemplate:::FUN(X[[i]], ...)
    9.             └─ProjectTemplate:::.read.cache.info(x)
   10.               ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
   11.               │ ├─base::structure(...)
   12.               │ ├─base::as.list(...)
   13.               │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
   14.               │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
   15.               └─ProjectTemplate:::.cache.format()
   16.                 └─ProjectTemplate::require.package(cache_format[["package"]])
   17.                   └─utils::install.packages(package.name)
   18.                     ├─base::startsWith(contriburl, "file:")
   19.                     └─utils::contrib.url(repos, type)
  ── Error (test-qs.R:318:3): projects without the cached_loaded_data config have their migrated config set to FALSE  ──
  Error: trying to use CRAN without setting a mirror
  Backtrace:
       █
    1. ├─testthat::expect_warning(suppressMessages(load.project()), "missing the following entries") test-qs.R:318:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::suppressMessages(load.project())
    7. │ └─base::withCallingHandlers(...)
    8. └─ProjectTemplate::load.project()
    9.   └─ProjectTemplate:::.load.data(config, my.project.info)
   10.     └─ProjectTemplate:::.list.data(config)
   11.       └─ProjectTemplate:::.is.cached(varnames)
   12.         └─base::vapply(...)
   13.           └─ProjectTemplate:::FUN(X[[i]], ...)
   14.             └─ProjectTemplate:::.read.cache.info(x)
   15.               ├─ProjectTemplate:::.cache.filename(variable, .cache.format())
   16.               │ ├─base::structure(...)
   17.               │ ├─base::as.list(...)
   18.               │ ├─base::file.path(.cache.dir, sprintf("%s%s", variable, cache_format[["plain_exts"]]))
   19.               │ └─base::sprintf("%s%s", variable, cache_format[["plain_exts"]])
   20.               └─ProjectTemplate:::.cache.format()
   21.                 └─ProjectTemplate::require.package(cache_format[["package"]])
   22.                   └─utils::install.packages(package.name)
   23.                     ├─base::startsWith(contriburl, "file:")
   24.                     └─utils::contrib.url(repos, type)
  
  [ FAIL 8 | WARN 7 | SKIP 0 | PASS 873 ]
  Error: Test failures
  Execution halted