Running ‘testthat.R’ [6s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(wilson)
  
  Attaching package: 'wilson'
  
  The following object is masked from 'package:stats':
  
      heatmap
  
  > 
  > test_check("wilson")
  ── 1. Error: ggplot is downloadable (@test-download.R#4)  ──────────────────────
  there is no package called 'ggplot2'
  Backtrace:
   1. ggplot2::ggplot
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: complexHeatmap is downloadable (@test-download.R#37)  ─────────────
  there is no package called 'ggplot2'
  Backtrace:
    1. testthat::expect_silent(...)
    9. wilson:::download(...)
   10. ggplot2::is.ggplot
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16. base:::withOneRestart(expr, restarts[[1L]])
   17. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: scatterplot can be created (@test-interactive-plots.R#6)  ─────────
  there is no package called 'ggplot2'
  Backtrace:
   1. wilson::create_scatterplot(...)
   2. ggplot2::theme
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: heatmap can be created (@test-interactive-plots.R#13)  ────────────
  there is no package called 'ggplot2'
  Backtrace:
    1. wilson::create_heatmap(data, colors = c("red", "green"), plot.method = "interactive")
    2. heatmaply::heatmapr
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    8. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   10. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   11. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12. base:::withOneRestart(expr, restarts[[1L]])
   13. base:::doWithOneRestart(return(expr), restart)
  
  ── 5. Error: geneview can be created (@test-interactive-plots.R#21)  ───────────
  there is no package called 'ggplot2'
  Backtrace:
   1. wilson::create_geneview(...)
   2. ggplot2::theme
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 6. Error: scatterplot can be created (@test-static-plots.R#6)  ──────────────
  there is no package called 'ggplot2'
  Backtrace:
   1. wilson::create_scatterplot(...)
   2. ggplot2::theme
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 7. Error: pca can be created (@test-static-plots.R#19)  ─────────────────────
  there is no package called 'ggplot2'
  Backtrace:
    1. wilson::create_pca(...)
    2. FactoMineR::PCA
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   11. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   12. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   13. base:::withOneRestart(expr, restarts[[1L]])
   14. base:::doWithOneRestart(return(expr), restart)
  
  ── 8. Error: geneview can be created (@test-static-plots.R#44)  ────────────────
  there is no package called 'ggplot2'
  Backtrace:
   1. wilson::create_geneview(...)
   2. ggplot2::theme
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 54 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: ggplot is downloadable (@test-download.R#4) 
  2. Error: complexHeatmap is downloadable (@test-download.R#37) 
  3. Error: scatterplot can be created (@test-interactive-plots.R#6) 
  4. Error: heatmap can be created (@test-interactive-plots.R#13) 
  5. Error: geneview can be created (@test-interactive-plots.R#21) 
  6. Error: scatterplot can be created (@test-static-plots.R#6) 
  7. Error: pca can be created (@test-static-plots.R#19) 
  8. Error: geneview can be created (@test-static-plots.R#44) 
  
  Error: testthat unit tests failed
  Execution halted