Running ‘run-all.R’ [5s/18s]
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("ProjectTemplate")
  Loading required package: ProjectTemplate
  Failed with error:  'there is no package called 'tibble''
  ── 1. Error: Test 1: Add an extension (@test-add_extension.R#27)  ──────────────
  trying to use CRAN without setting a mirror
  1: load.project() at testthat/test-add_extension.R:27
  2: .load.data(config, my.project.info)
  3: .convert.to.tibble(vars.new)
  4: require.package("tibble", FALSE)
  5: install.packages(package.name)
  6: grep("^file:", contriburl)
  7: contrib.url(repos, type)
  8: stop("trying to use CRAN without setting a mirror")
  
  Read 1 item
  ✔ | OK F W S | Context
  
  ⠋ |  1       | 0
  ══ Results ═════════════════════════════════════════════════════════════════════
  OK:       1
  Failed:   0
  Warnings: 0
  Skipped:  0
  ✔ | OK F W S | Context
  
  ⠋ |  1       | 0
  ══ Results ═════════════════════════════════════════════════════════════════════
  OK:       1
  Failed:   0
  Warnings: 0
  Skipped:  0
  Failed with error:  'there is no package called 'tibble''
  ── 2. Error: cached data is listed correctly as already cached (@test-list.R#429
  trying to use CRAN without setting a mirror
  1: suppressMessages(load.project()) at testthat/test-list.R:429
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: load.project()
  4: .load.data(config, my.project.info)
  5: .convert.to.tibble(vars.new)
  6: require.package("tibble", FALSE)
  7: install.packages(package.name)
  8: grep("^file:", contriburl)
  9: contrib.url(repos, type)
  10: stop("trying to use CRAN without setting a mirror")
  
  ── 3. Error: auto loaded data is cached by default (@test-load.R#57)  ──────────
  there is no package called 'tibble'
  1: tibble::as_tibble at testthat/test-load.R:57
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  Failed with error:  'there is no package called 'tibble''
  ── 4. Error: auto loaded data is not cached when cached_loaded_data is FALSE (@t
  trying to use CRAN without setting a mirror
  1: suppressMessages(load.project()) at testthat/test-load.R:92
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: load.project()
  4: .load.data(config, my.project.info)
  5: .convert.to.tibble(vars.new)
  6: require.package("tibble", FALSE)
  7: install.packages(package.name)
  8: grep("^file:", contriburl)
  9: contrib.url(repos, type)
  10: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 5. Error: auto loaded data from an R script is cached correctly (@test-load.R
  trying to use CRAN without setting a mirror
  1: suppressMessages(load.project()) at testthat/test-load.R:128
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: load.project()
  4: .load.data(config, my.project.info)
  5: .convert.to.tibble(vars.new)
  6: require.package("tibble", FALSE)
  7: install.packages(package.name)
  8: grep("^file:", contriburl)
  9: contrib.url(repos, type)
  10: stop("trying to use CRAN without setting a mirror")
  
  ── 6. Error: ignored data files are not loaded (@test-load.R#161)  ─────────────
  there is no package called 'tibble'
  1: tibble::as_tibble at testthat/test-load.R:161
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  Failed with error:  'there is no package called 'tibble''
  ── 7. Error: Version 0.5 (@test-migration.R#25)  ───────────────────────────────
  trying to use CRAN without setting a mirror
  1: expect_that(suppressMessages(load.project()), gives_warning("migrate.project")) at testthat/test-migration.R:25
  2: condition(object)
  3: expect_warning(x, regexp = regexp, all = all, ...)
  4: quasi_capture(enquo(object), capture_warnings, label = label)
  5: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  6: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  7: eval_bare(get_expr(quo), get_env(quo))
  8: suppressMessages(load.project())
  9: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  10: load.project()
  11: .load.data(config, my.project.info)
  12: .convert.to.tibble(vars.new)
  13: require.package("tibble", FALSE)
  14: install.packages(package.name)
  15: grep("^file:", contriburl)
  16: contrib.url(repos, type)
  17: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 8. Error: Version 0.5-2 (@test-migration.R#25)  ─────────────────────────────
  trying to use CRAN without setting a mirror
  1: expect_that(suppressMessages(load.project()), gives_warning("migrate.project")) at testthat/test-migration.R:25
  2: condition(object)
  3: expect_warning(x, regexp = regexp, all = all, ...)
  4: quasi_capture(enquo(object), capture_warnings, label = label)
  5: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  6: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  7: eval_bare(get_expr(quo), get_env(quo))
  8: suppressMessages(load.project())
  9: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  10: load.project()
  11: .load.data(config, my.project.info)
  12: .convert.to.tibble(vars.new)
  13: require.package("tibble", FALSE)
  14: install.packages(package.name)
  15: grep("^file:", contriburl)
  16: contrib.url(repos, type)
  17: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 9. Error: projects without the cached_loaded_data config have their migrated 
  trying to use CRAN without setting a mirror
  1: expect_warning(suppressMessages(load.project()), "missing the following entries: cache_loaded_data") at testthat/test-migration.R:77
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: suppressMessages(load.project())
  7: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  8: load.project()
  9: .load.data(config, my.project.info)
  10: .convert.to.tibble(vars.new)
  11: require.package("tibble", FALSE)
  12: install.packages(package.name)
  13: grep("^file:", contriburl)
  14: contrib.url(repos, type)
  15: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 10. Error: migrating a project with a data/*.csv2 file results in a message t
  trying to use CRAN without setting a mirror
  1: expect_warning(suppressMessages(load.project()), "csv2") at testthat/test-migration.R:195
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: suppressMessages(load.project())
  7: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  8: load.project()
  9: .load.data(config, my.project.info)
  10: .convert.to.tibble(vars.new)
  11: require.package("tibble", FALSE)
  12: install.packages(package.name)
  13: grep("^file:", contriburl)
  14: contrib.url(repos, type)
  15: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'readxl''
  ── 11. Error: Example 26: Excel 2007 File with .xls Extension (@test-readers.R#6
  trying to use CRAN without setting a mirror
  1: xls.reader(data.file, filename, variable.name) at testthat/test-readers.R:666
  2: .require.package("readxl")
  3: require.package(package.name, attach = attach_internal)
  4: install.packages(package.name)
  5: grep("^file:", contriburl)
  6: contrib.url(repos, type)
  7: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 12. Error: reload.project ignores sticky_variables (@test-reload.R#88)  ─────
  trying to use CRAN without setting a mirror
  1: suppressMessages(load.project()) at testthat/test-reload.R:88
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: load.project()
  4: .load.data(config, my.project.info)
  5: .convert.to.tibble(vars.new)
  6: require.package("tibble", FALSE)
  7: install.packages(package.name)
  8: grep("^file:", contriburl)
  9: contrib.url(repos, type)
  10: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 13. Error: reload.project with reset clears everything (@test-reload.R#143)  
  trying to use CRAN without setting a mirror
  1: suppressMessages(reload.project()) at testthat/test-reload.R:143
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: reload.project()
  4: load.project(...)
  5: .load.data(config, my.project.info)
  6: .convert.to.tibble(vars.new)
  7: require.package("tibble", FALSE)
  8: install.packages(package.name)
  9: grep("^file:", contriburl)
  10: contrib.url(repos, type)
  11: stop("trying to use CRAN without setting a mirror")
  
  Failed with error:  'there is no package called 'tibble''
  ── 14. Failure: creating a template from an existing template produces the same 
  `load.project()` threw an error.
  Message: trying to use CRAN without setting a mirror
  Class:   simpleError/error/condition
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 772 SKIPPED: 4 FAILED: 14
  1. Error: Test 1: Add an extension (@test-add_extension.R#27) 
  2. Error: cached data is listed correctly as already cached (@test-list.R#429) 
  3. Error: auto loaded data is cached by default (@test-load.R#57) 
  4. Error: auto loaded data is not cached when cached_loaded_data is FALSE (@test-load.R#92) 
  5. Error: auto loaded data from an R script is cached correctly (@test-load.R#128) 
  6. Error: ignored data files are not loaded (@test-load.R#161) 
  7. Error: Version 0.5 (@test-migration.R#25) 
  8. Error: Version 0.5-2 (@test-migration.R#25) 
  9. Error: projects without the cached_loaded_data config have their migrated config set to FALSE  (@test-migration.R#77) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted