* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/plotmm.Rcheck’ * using R Under development (unstable) (2024-09-07 r87105) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) GNU Fortran (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) * running under: Fedora Linux 38 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘plotmm/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘plotmm’ version ‘0.1.1’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘plotmm’ can be installed ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘plotmm-Ex.R’ failed The error most likely occurred in: > ### Name: plot_mix_comps > ### Title: Helper Function for Overlaying Mixture Components > ### Aliases: plot_mix_comps > > ### ** Examples > > ## No test: > if(require(mixtools)){ + mixmdl <- mixtools::normalmixEM(faithful$waiting, k = 2) + } Loading required package: mixtools mixtools package, version 2.0.0, Released 2022-12-04 This package is based upon work supported by the National Science Foundation under Grant No. SES-0518772 and the Chan Zuckerberg Initiative: Essential Open Source Software for Science (Grant No. 2020-255193). number of iterations= 29 > x <- mixmdl$x > x <- data.frame(x) > ggplot2::ggplot(data.frame(x)) + + ggplot2::geom_density(ggplot2::aes(x), color="black", fill="black") + + ggplot2::stat_function(geom = "line", fun = plot_mix_comps, + args = list(mixmdl$mu[1], mixmdl$sigma[1], lam = mixmdl$lambda[1]), + colour = "red") + + ggplot2::stat_function(geom = "line", fun = plot_mix_comps, + args = list(mixmdl$mu[2], mixmdl$sigma[2], lam = mixmdl$lambda[2]), + colour = "blue") Error in `ggplot2::stat_function()`: ! Problem while setting up geom. ℹ Error occurred in the 2nd layer. Caused by error in `compute_geom_1()`: ! `geom_line()` requires the following missing aesthetics: y. Backtrace: ▆ 1. ├─base (local) ``(x) 2. └─ggplot2:::print.ggplot(x) 3. ├─ggplot2::ggplot_build(x) 4. └─ggplot2:::ggplot_build.ggplot(x) 5. └─ggplot2:::by_layer(...) 6. ├─rlang::try_fetch(...) 7. │ ├─base::tryCatch(...) 8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. │ └─base::withCallingHandlers(...) 12. └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 13. └─l$compute_geom_1(d) 14. └─ggplot2 (local) compute_geom_1(..., self = self) 15. └─ggplot2:::check_required_aesthetics(...) 16. └─cli::cli_abort(paste0(message, "."), call = call) 17. └─rlang::abort(...) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [14s/14s] [14s/14s] OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s/15s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/plotmm.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:54.56, 47.35 + 6.97