Running ‘testthat.R’ [57s/78s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(NAIR)
  Welcome to NAIR: Network Analysis of Immune Repertoire.
  Get started using `vignette("NAIR")`, or by visiting
  https://mlizhangx.github.io/Network-Analysis-for-Repertoire-Sequencing-/
  > 
  > test_check("NAIR")
  Network graph plots printed to pdf file:
    /tmp/RtmpadCj07/working_dir/RtmpiETxaL/plots.pdf
  [ FAIL 48 | WARN 0 | SKIP 0 | PASS 1171 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_functions.R:1260:3'): plots legends behave correctly ─────────
  names(net$plots$cluster_greedy$guides) (`actual`) not equal to "colour" (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour"        
  ── Failure ('test_functions.R:1263:3'): plots legends behave correctly ─────────
  net$plots$cluster_greedy$guides$colour$title (`actual`) not equal to "cluster_greedy" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('cluster_greedy')
  ── Failure ('test_functions.R:1266:3'): plots legends behave correctly ─────────
  net$plots$cluster_greedy$guides$colour$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1270:3'): plots legends behave correctly ─────────
  names(net$plots$cluster_leiden$guides) (`actual`) not equal to "colour" (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour"        
  ── Failure ('test_functions.R:1273:3'): plots legends behave correctly ─────────
  net$plots$cluster_leiden$guides$colour (`actual`) not equal to "none" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('none')
  ── Failure ('test_functions.R:1280:3'): plots legends behave correctly ─────────
  names(net$plots$transitivity$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1283:3'): plots legends behave correctly ─────────
  net$plots$transitivity$guides$colour$title (`actual`) not equal to "Transitivity" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('Transitivity')
  ── Failure ('test_functions.R:1286:3'): plots legends behave correctly ─────────
  net$plots$transitivity$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1289:3'): plots legends behave correctly ─────────
  net$plots$transitivity$guides$size$title (`actual`) not equal to "Clone Count" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('Clone Count')
  ── Failure ('test_functions.R:1292:3'): plots legends behave correctly ─────────
  net$plots$transitivity$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1296:3'): plots legends behave correctly ─────────
  names(net$plots$CloneCount$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1299:3'): plots legends behave correctly ─────────
  net$plots$CloneCount$guides$colour$title (`actual`) not equal to "Clone Count" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('Clone Count')
  ── Failure ('test_functions.R:1302:3'): plots legends behave correctly ─────────
  net$plots$CloneCount$guides$colour$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1305:3'): plots legends behave correctly ─────────
  net$plots$CloneCount$guides$size$title (`actual`) not equal to "Clone Count" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('Clone Count')
  ── Failure ('test_functions.R:1308:3'): plots legends behave correctly ─────────
  net$plots$CloneCount$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1312:3'): plots legends behave correctly ─────────
  names(net$plots$eigen_centrality$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1315:3'): plots legends behave correctly ─────────
  net$plots$eigen_centrality$guides$colour$title (`actual`) not equal to "Eigen Centrality" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('Eigen Centrality')
  ── Failure ('test_functions.R:1318:3'): plots legends behave correctly ─────────
  net$plots$eigen_centrality$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1321:3'): plots legends behave correctly ─────────
  net$plots$eigen_centrality$guides$size$title (`actual`) not equal to "eigen_centrality" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('eigen_centrality')
  ── Failure ('test_functions.R:1324:3'): plots legends behave correctly ─────────
  net$plots$eigen_centrality$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1328:3'): plots legends behave correctly ─────────
  names(net$plots$authority_score$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1331:3'): plots legends behave correctly ─────────
  net$plots$authority_score$guides$colour$title (`actual`) not equal to "authority_score" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('authority_score')
  ── Failure ('test_functions.R:1334:3'): plots legends behave correctly ─────────
  net$plots$authority_score$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1337:3'): plots legends behave correctly ─────────
  net$plots$authority_score$guides$size$title (`actual`) not equal to "eigen_centrality" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('eigen_centrality')
  ── Failure ('test_functions.R:1340:3'): plots legends behave correctly ─────────
  net$plots$authority_score$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1344:3'): plots legends behave correctly ─────────
  names(net$plots$coreness$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1347:3'): plots legends behave correctly ─────────
  net$plots$coreness$guides$colour (`actual`) not equal to "none" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('none')
  ── Failure ('test_functions.R:1350:3'): plots legends behave correctly ─────────
  net$plots$coreness$guides$size$title (`actual`) not equal to "coreness" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('coreness')
  ── Failure ('test_functions.R:1353:3'): plots legends behave correctly ─────────
  net$plots$coreness$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1357:3'): plots legends behave correctly ─────────
  names(net$plots$page_rank$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1362:3'): plots legends behave correctly ─────────
  net$plots$page_rank$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1365:3'): plots legends behave correctly ─────────
  net$plots$page_rank$guides$size$title (`actual`) not equal to "page_rank" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('page_rank')
  ── Failure ('test_functions.R:1368:3'): plots legends behave correctly ─────────
  net$plots$page_rank$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1372:3'): plots legends behave correctly ─────────
  names(net2$plots$CloneCount$guides) (`actual`) not equal to "colour" (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour"        
  ── Failure ('test_functions.R:1375:3'): plots legends behave correctly ─────────
  net2$plots$CloneCount$guides$colour$title (`actual`) not equal to "CloneCount" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('CloneCount')
  ── Failure ('test_functions.R:1378:3'): plots legends behave correctly ─────────
  net2$plots$CloneCount$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1383:3'): plots legends behave correctly ─────────
  names(net3$plots$cluster_id$guides) (`actual`) not equal to "colour" (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour"        
  ── Failure ('test_functions.R:1386:3'): plots legends behave correctly ─────────
  net3$plots$cluster_id$guides$colour$title (`actual`) not equal to "cluster_id" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('cluster_id')
  ── Failure ('test_functions.R:1389:3'): plots legends behave correctly ─────────
  net3$plots$cluster_id$guides$colour$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1394:3'): plots legends behave correctly ─────────
  names(net4$plots$degree$guides) (`actual`) not equal to "colour" (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour"        
  ── Failure ('test_functions.R:1397:3'): plots legends behave correctly ─────────
  net4$plots$degree$guides$colour$title (`actual`) not equal to "degree" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('degree')
  ── Failure ('test_functions.R:1400:3'): plots legends behave correctly ─────────
  net4$plots$degree$guides$colour$name (`actual`) not equal to "colorbar" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('colorbar')
  ── Failure ('test_functions.R:1405:3'): plots legends behave correctly ─────────
  names(net5$plots$uniform_color$guides) is not NULL
  
  `actual` is a character vector ('guides', 'super')
  `expected` is NULL
  ── Failure ('test_functions.R:1407:3'): plots legends behave correctly ─────────
  names(sc_net$plots$SampleID$guides) (`actual`) not equal to c("colour", "size") (`expected`).
  
  `actual`:   "guides" "super"
  `expected`: "colour" "size" 
  ── Failure ('test_functions.R:1410:3'): plots legends behave correctly ─────────
  sc_net$plots$SampleID$guides$colour$title (`actual`) not equal to "SampleID" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('SampleID')
  ── Failure ('test_functions.R:1413:3'): plots legends behave correctly ─────────
  sc_net$plots$SampleID$guides$colour$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  ── Failure ('test_functions.R:1416:3'): plots legends behave correctly ─────────
  sc_net$plots$SampleID$guides$size$title (`actual`) not equal to "UMIs" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('UMIs')
  ── Failure ('test_functions.R:1419:3'): plots legends behave correctly ─────────
  sc_net$plots$SampleID$guides$size$name (`actual`) not equal to "legend" (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('legend')
  
  [ FAIL 48 | WARN 0 | SKIP 0 | PASS 1171 ]
  Error: Test failures
  Execution halted