Running 'testthat.R' [23s/28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mosaic)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: lattice
  Loading required package: ggformula
  Loading required package: ggplot2
  Loading required package: ggstance
  
  Attaching package: 'ggstance'
  
  The following objects are masked from 'package:ggplot2':
  
      GeomErrorbarh, geom_errorbarh
  
  
  New to ggformula?  Try the tutorials: 
  	learnr::run_tutorial("introduction", package = "ggformula")
  	learnr::run_tutorial("refining", package = "ggformula")
  Loading required package: mosaicData
  Loading required package: Matrix
  Registered S3 method overwritten by 'mosaic':
    method                           from   
    fortify.SpatialPolygonsDataFrame ggplot2
  
  The 'mosaic' package masks several functions from core packages in order to add 
  additional features.  The original behavior of these functions should not be affected by this.
  
  Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.
  
  Have you tried the ggformula package for your plots?
  
  Attaching package: 'mosaic'
  
  The following object is masked from 'package:Matrix':
  
      mean
  
  The following object is masked from 'package:ggplot2':
  
      stat
  
  The following objects are masked from 'package:dplyr':
  
      count, do, tally
  
  The following objects are masked from 'package:stats':
  
      IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
      quantile, sd, t.test, var
  
  The following objects are masked from 'package:base':
  
      max, mean, min, prod, range, sample, sum
  
  > 
  > test_check("mosaic")
  -- 1. Error: Ashplots work (@test-ashplots.R#5)  -------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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: bargraph works (@test-bargraph.R#8)  ------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 3. Error: Clustering works (@test-clustering.R#58)  -------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 4. Error: Dot Plot works (@test-dotplot.R#6)  -------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 5. Error: fitSpline works (@test-fitspline.R#9)  ----------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 6. Error: freqpolygon() examples are working (@test-frequencyPolygon.R#5)  --
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 7. Error: basic ladd works (@test-ladd.R#7)  --------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 8. Error: ladd with factors works (@test-ladd.R#20)  ------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 9. Error: (unknown) (@test-ladd.R#28)  --------------------------------------
  invalid argument type
  Backtrace:
   1. mosaic::ladd(...)
   2. lattice::trellis.last.object()
  
  -- 10. Error: US Maps work (@test-maps2.R#30)  ---------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 11. Error: lm mplot works (@test-mplot.R#19)  -------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 12. Error: plotCumfreq works (@test-plotCumfreq.R#4)  -----------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 13. Error: plotDist works (@test-plotDist.R#4)  -----------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 14. Error: plotModel works (@test-plotModel.R#9)  ---------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 15. Error: plotPoints works (@test-plotPoints.R#5)  -------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 16. Error: rfun works (@test-rfun.R#17)  ------------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 17. Error: statTally works (@test-statTally.R#41)  --------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  -- 18. Error: xpnorm works (@test-xpnorm.R#4)  ---------------------------------
  there is no package called 'vdiffr'
  Backtrace:
   1. vdiffr::expect_doppelganger
   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)
  
  == testthat results  ===========================================================
  [ OK: 285 | SKIPPED: 0 | WARNINGS: 4 | FAILED: 18 ]
  1. Error: Ashplots work (@test-ashplots.R#5) 
  2. Error: bargraph works (@test-bargraph.R#8) 
  3. Error: Clustering works (@test-clustering.R#58) 
  4. Error: Dot Plot works (@test-dotplot.R#6) 
  5. Error: fitSpline works (@test-fitspline.R#9) 
  6. Error: freqpolygon() examples are working (@test-frequencyPolygon.R#5) 
  7. Error: basic ladd works (@test-ladd.R#7) 
  8. Error: ladd with factors works (@test-ladd.R#20) 
  9. Error: (unknown) (@test-ladd.R#28) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted