* using log directory 'd:/Rcompile/CRANpkg/local/4.6/mosaic.Rcheck' * using R version 4.6.0 RC (2026-04-20 r89921 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-04-21 15:13:13 UTC * checking for file 'mosaic/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'mosaic' version '1.9.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'mosaic' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [3s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [3s] OK * checking whether startup messages can be suppressed ... [3s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [23s] OK * checking Rd files ... [2s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [60s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [30s] ERROR Running 'testthat.R' [29s] 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 object is masked from 'package:testthat': compare 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") Saving _problems/test-do-5.R Saving _problems/test-do-6.R Mapping API still under development and may change in future releases. `geom_smooth()` using formula = 'y ~ x' `geom_smooth()` using formula = 'y ~ x' `geom_smooth()` using formula = 'y ~ x' `geom_smooth()` using formula = 'y ~ x' Reading data with read.csv() Null distribution appears to be asymmetric. (p = 0) 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 = 0) 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 Loading required package: manipulate If X ~ N(500, 100), then P(X <= 650) = P(Z <= 1.5) = 0.9332 P(X > 650) = P(Z > 1.5) = 0.06681 [1] 0.9331928 If X ~ N(500, 100), then P(X <= 567.449) = 0.75 P(X > 567.449) = 0.25 [1] 567.449 [ FAIL 2 | WARN 3 | SKIP 18 | PASS 246 ] ══ Skipped tests (18) ══════════════════════════════════════════════════════════ • On CRAN (18): 'test-ashplots.R:4:1', 'test-bargraph.R:2:1', 'test-clustering.R:2:1', 'test-dotplot.R:3:1', 'test-fitspline.R:3:1', 'test-frequencyPolygon.R:3:1', 'test-ladd.R:3:1', 'test-ladd.R:15:1', 'test-ladd.R:30:1', 'test-maps2.R:29:1', 'test-mplot.R:3:1', 'test-plotCumfreq.R:3:1', 'test-plotDist.R:3:1', 'test-plotModel.R:3:1', 'test-plotPoints.R:3:1', 'test-rfun.R:3:1', 'test-statTally.R:39:1', 'test-xpnorm.R:3:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-do.R:5:3'): naming as expected ─────────────────────────────── Expected `names(do(2) * mean(~cesd, data = mosaicData::HELPrct))` to equal "mean". Differences: `actual`: "result" `expected`: "mean" ── Failure ('test-do.R:6:3'): naming as expected ─────────────────────────────── Expected `names(do(2) * var(~cesd, data = mosaicData::HELPrct))` to equal "var". Differences: `actual`: "result" `expected`: "var" [ FAIL 2 | WARN 3 | SKIP 18 | PASS 246 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [25s] ERROR Error(s) in re-building vignettes: --- re-building 'Resampling.Rmd' using rmarkdown Quitting from Resampling.Rmd:271-274 [hist] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error: ! Aesthetics are not valid data columns. ✖ The following aesthetics are invalid: • `x = mean` ℹ Did you mistype the name of a data column or forget to add `after_stat()`? --- Backtrace: ▆ 1. ├─base::withVisible(knit_print(x, ...)) 2. ├─knitr::knit_print(x, ...) 3. └─knitr:::knit_print.default(x, ...) 4. └─knitr::normal_print(x) 5. ├─base::print(x) 6. ├─ggformula:::print.gf_ggplot(x) 7. ├─base::NextMethod() 8. └─ggplot2 (local) `print.ggplot2::ggplot`(x) 9. ├─ggplot2::ggplot_build(x) 10. └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x) 11. └─ggplot2:::by_layer(...) 12. ├─rlang::try_fetch(...) 13. │ ├─base::tryCatch(...) 14. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 15. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 16. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 17. │ └─base::withCallingHandlers(...) 18. └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 19. └─l$compute_aesthetics(d, plot) 20. └─ggplot2 (local) compute_aesthetics(..., self = self) 21. └─ggplot2:::check_nondata_cols(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Resampling.Rmd' failed with diagnostics: Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error: ! Aesthetics are not valid data columns. ✖ The following aesthetics are invalid: • `x = mean` ℹ Did you mistype the name of a data column or forget to add `after_stat()`? --- failed re-building 'Resampling.Rmd' --- re-building 'mosaic-resources.Rmd' using rmarkdown --- finished re-building 'mosaic-resources.Rmd' --- re-building 'MinimalRgg.Rnw' using knitr --- finished re-building 'MinimalRgg.Rnw' SUMMARY: processing the following file failed: 'Resampling.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [25s] OK * checking HTML version of manual ... [30s] OK * DONE Status: 2 ERRORs