Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(nbTransmission)
  > 
  > test_check("nbTransmission")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_visualizeResults.R:59:3): Plot functions return null objects with no errors ──
  Error: there is no package called 'igraph'
  Backtrace:
      █
   1. ├─nbTransmission:::nbNetworkWrapper(testData) test_visualizeResults.R:59:2
   2. │ └─nbTransmission::nbNetwork(...) test_visualizeResults.R:18:2
   3. │   └─nbTransmission:::createNetwork(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_visualizeResults.R:82:3): Internal createNetwork function returns igraph object ──
  Error: there is no package called 'igraph'
  Backtrace:
      █
   1. ├─nbTransmission:::createNetworkWrapper(testData) test_visualizeResults.R:82:2
   2. │ └─nbTransmission:::createNetwork(...) test_visualizeResults.R:48:2
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_visualizeResults.R:140:3): Descriptive error messages returned from internal createNetwork function ──
  Error: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test_visualizeResults.R:140: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. ├─nbTransmission:::createNetwork(...)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base:::withOneRestart(expr, restarts[[1L]])
   10.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_visualizeResults.R:167:3): Descriptive error messages returned for probBreaks ──
  Error: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test_visualizeResults.R:167: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. ├─nbTransmission:::createNetworkWrapper(...)
    7. │ └─nbTransmission:::createNetwork(...) test_visualizeResults.R:48:2
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base:::withOneRestart(expr, restarts[[1L]])
   11.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_visualizeResults.R:197:3): Plot functions return null objects with no errors ──
  Error: there is no package called 'Hmisc'
  Backtrace:
      █
   1. ├─nbTransmission::plotRt(...) test_visualizeResults.R:197:2
   2. │ └─base::gsub("s$", "", Hmisc::capitalize(rData$timeFrame))
   3. │   └─base::is.factor(x)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test_visualizeResults.R:224:3): Descriptive error messages returned for plotRt ──
  `plotRt(rFinal2, includeRtAvgCI = TRUE)` threw an error with unexpected message.
  Expected match: "Please provide a rData list that has confidence intervals"
  Actual message: "there is no package called 'Hmisc'"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_visualizeResults.R:224:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─nbTransmission::plotRt(rFinal2, includeRtAvgCI = TRUE)
    7. │ └─base::gsub("s$", "", Hmisc::capitalize(rData$timeFrame))
    8. │   └─base::is.factor(x)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test_visualizeResults.R:227:3): Descriptive error messages returned for plotRt ──
  `plotRt(rFinal2, includeRtCI = TRUE)` threw an error with unexpected message.
  Expected match: "Please provide a rData list that has confidence intervals"
  Actual message: "there is no package called 'Hmisc'"
  Backtrace:
       █
    1. ├─testthat::expect_error(plotRt(rFinal2, includeRtCI = TRUE), "Please provide a rData list that has confidence intervals") test_visualizeResults.R:227:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─nbTransmission::plotRt(rFinal2, includeRtCI = TRUE)
    7. │ └─base::gsub("s$", "", Hmisc::capitalize(rData$timeFrame))
    8. │   └─base::is.factor(x)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test_visualizeResults.R:230:3): Descriptive error messages returned for plotRt ──
  `plotRt(rFinal2, includeRtCI = TRUE, includeRtAvgCI = TRUE)` threw an error with unexpected message.
  Expected match: "Please provide a rData list that has confidence intervals"
  Actual message: "there is no package called 'Hmisc'"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_visualizeResults.R:230:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─nbTransmission::plotRt(rFinal2, includeRtCI = TRUE, includeRtAvgCI = TRUE)
    7. │ └─base::gsub("s$", "", Hmisc::capitalize(rData$timeFrame))
    8. │   └─base::is.factor(x)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 114 ]
  Error: Test failures
  Execution halted