Running ‘testthat.R’ [53s/69s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mosaic)
  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.
  
  Attaching package: 'mosaic'
  
  The following objects are masked from 'package:dplyr':
  
      count, do, tally
  
  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: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")
  
  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
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● Figure not generated yet: ashplots1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: bargraph1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: bargraph2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: bargraph3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: bargraph4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: bargraph5.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: clustering1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: clustering2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: clustering3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: clustering4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: dotplot1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: dotplot2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: dotplot3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: firstexample.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: fitspline1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: fitspline2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: fitspline3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: fitspline4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: fourthexample.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd5.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd6.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd7.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd8.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: ladd9.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot5.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot6.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot7.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: mplot8.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotcumfreq1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist10.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist11.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist12.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist13.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist14.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist15.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist16.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist17.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist18.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist19.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist4.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist5.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist6.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist7.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist8.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotdist9.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotmodel1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotmodel2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotmodel3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotpoints1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotpoints2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: plotpoints3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: rfun1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: rfun2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: secondexample.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: stattally1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: stattally2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: stattally3.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: thirdexample.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: usmaps1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: xpnorm1.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  ● Figure not generated yet: xpnorm2.svg
  Please run `vdiffr::manage_cases()` to validate the figure. (1)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-findZeros.R:9:3): zeros are within search interval ────────────
  NaNs produced
  Backtrace:
   1. testthat::expect_true(...) test-findZeros.R:9:2
   4. mosaic::findZeros(sin(1/x) ~ x, near = 0, within = 4)
   5. base::sapply(searchx, pfun)
   6. base::lapply(X = X, FUN = FUN, ...)
   7. mosaic:::FUN(X[[i]], ...)
   8. [ base::eval(...) ] with 1 more call
  ── Warning (test-findZeros.R:9:3): zeros are within search interval ────────────
  NaNs produced
  Backtrace:
   1. testthat::expect_true(...) test-findZeros.R:9:2
   4. mosaic::findZeros(sin(1/x) ~ x, near = 0, within = 4)
   5. mosaic::findZeros(...)
   6. base::sapply(searchx, pfun)
   7. base::lapply(X = X, FUN = FUN, ...)
   8. mosaic:::FUN(X[[i]], ...)
   9. [ base::eval(...) ] with 1 more call
  ── Warning (test-findZeros.R:13:3): Can find zeros in two variables ────────────
  cannot xtfrm data frames
  Backtrace:
    1. mosaic::findZerosMult(a * x^2 - v ~ a & x, v = 8) test-findZeros.R:13:2
    2. mosaic:::.sort(roots, near = near, type = sortBy)
    5. base::order(data[1])
    6. base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    7. base:::FUN(X[[i]], ...)
   10. base::xtfrm.data.frame(x)
  ── Warning (test-findZeros.R:21:3): Works with Broyden ─────────────────────────
  cannot xtfrm data frames
  Backtrace:
    1. mosaic::findZeros(...) test-findZeros.R:21:2
    3. mosaic::findZerosMult(...)
    4. mosaic:::.sort(roots, near = near, type = sortBy)
    7. base::order(data[1])
    8. base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    9. base:::FUN(X[[i]], ...)
   12. base::xtfrm.data.frame(x)
  ── Warning (test-findZeros.R:28:3): Works with Broyden ─────────────────────────
  cannot xtfrm data frames
  Backtrace:
    1. mosaic::findZeros(...) test-findZeros.R:28:2
    3. mosaic::findZerosMult(...)
    4. mosaic:::.sort(roots, near = near, type = sortBy)
    7. base::order(data[1])
    8. base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    9. base:::FUN(X[[i]], ...)
   12. base::xtfrm.data.frame(x)
  ── Warning (test-findZeros.R:36:3): Works with Broyden ─────────────────────────
  cannot xtfrm data frames
  Backtrace:
    1. mosaic::findZeros(...) test-findZeros.R:36:2
    3. mosaic::findZerosMult(...)
    4. mosaic:::.sort(roots, near = near, type = sortBy)
    7. base::order(data[1])
    8. base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    9. base:::FUN(X[[i]], ...)
   12. base::xtfrm.data.frame(x)
  ── Warning (test-read.file.R:31:3): read.file works ────────────────────────────
  URL 'http://www.mosaic-web.org/go/datasets/Dome.csv': status was 'Couldn't resolve host name'
  Backtrace:
   1. mosaic::read.file("http://www.mosaic-web.org/go/datasets/Dome.csv") test-read.file.R:31:2
   2. utils::read.csv(...)
   3. utils::read.table(...)
   4. base::file(file, "rt")
  ── Warning (test-rfun.R:17:3): rfun works ──────────────────────────────────────
  number of items to replace is not a multiple of replacement length
  Backtrace:
   1. vdiffr::expect_doppelganger(...) test-rfun.R:17:2
   7. mosaicCore:::makeFun.formula(...)
  ── Warning (test-rfun.R:17:3): rfun works ──────────────────────────────────────
  number of items to replace is not a multiple of replacement length
  Backtrace:
   1. vdiffr::expect_doppelganger(...) test-rfun.R:17:2
   7. mosaicCore:::makeFun.formula(...)
  ── Warning (test-xpnorm.R:2:1): (code run outside of `test_that()`) ────────────
  there is no package called 'manipulate'
  Backtrace:
   1. base::require(manipulate) test-xpnorm.R:2:0
   6. base::library(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read.file.R:31:3): read.file works ──────────────────────────────
  Error: cannot open the connection to 'http://www.mosaic-web.org/go/datasets/Dome.csv'
  Backtrace:
      █
   1. └─mosaic::read.file("http://www.mosaic-web.org/go/datasets/Dome.csv") test-read.file.R:31:2
   2.   └─utils::read.csv(...)
   3.     └─utils::read.table(...)
   4.       └─base::file(file, "rt")
  
  [ FAIL 1 | WARN 10 | SKIP 72 | PASS 287 ]
  Error: Test failures
  Execution halted