Running ‘testthat.R’ [36s/66s]
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: smoothers works (@test-smoothers.R#12)  ───────────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. mosaic::spliner(y ~ x)
   2. mosaic:::.interpolatingFunction(...)
   4. stats::model.frame.default(formula, data = data)
  
  
  Null distribution appears to be asymmetric. (p = 8.76e-30) 
  
  Test statistic applied to sample data =  18 
  
  Quantiles of test statistic applied to random data: 
  50% 90% 95% 99% 
   16  19  20  22  
  
  Of the  1000  samples (1 original +  999  random), 
  	 131 ( 13.1 % ) had test stats = 18 
  	 297 ( 29.7 % ) had test stats >= 18 
  
  Null distribution appears to be asymmetric. (p = 2.28e-06) 
  
  Test statistic applied to sample data =  18 
  
  Quantiles of test statistic applied to random data: 
       50%      90%      95%      99% 
  10.00000 26.00000 31.33333 48.69333  
  
  Of the  1000  samples (1 original +  999  random), 
  	 33 ( 3.3 % ) had test stats = 18 
  	 240 ( 24 % ) had test stats >= 18 
  
  Null distribution appears to be asymmetric. (p = 8.76e-30) 
  
  Test statistic applied to sample data =  18 
  
  Quantiles of test statistic applied to random data: 
  50% 90% 95% 99% 
   16  19  20  22  
  
  Of the  1000  samples (1 original +  999  random), 
  	 131 ( 13.1 % ) had test stats = 18 
  	 297 ( 29.7 % ) had test stats >= 18 
  [1] 0.9331928
  [1] 567.449
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 285 | SKIPPED: 72 | WARNINGS: 6 | FAILED: 1 ]
  1. Error: smoothers works (@test-smoothers.R#12) 
  
  Error: testthat unit tests failed
  Execution halted