* using log directory 'd:/Rcompile/CRANpkg/local/4.5/faux.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'faux/DESCRIPTION' ... OK * this is package 'faux' version '1.2.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 'faux' 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking whether startup messages can be suppressed ... [2s] 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 ... [10s] OK * checking Rd files ... [1s] 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 ... [5s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [40s] ERROR Running examples in 'faux-Ex.R' failed The error most likely occurred in: > ### Name: norm2likert > ### Title: Convert normal to likert > ### Aliases: norm2likert > > ### ** Examples > > > x <- rnorm(10000) > y <- norm2likert(x, c(.1, .2, .35, .2, .1, .05)) > g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y)) > ggExtra::ggMarginal(g, type = "histogram") > > y <- norm2likert(x, c(40, 30, 20, 10)) > g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y)) > ggExtra::ggMarginal(g, type = "histogram") > > y <- norm2likert(x, c(lower = .5, upper = .5)) > g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y)) > ggExtra::ggMarginal(g, type = "histogram") Error in `ggplot2::scale_x_continuous()`: ! `limits` must be a vector, not a character vector. Backtrace: ▆ 1. └─ggExtra::ggMarginal(g, type = "histogram") 2. └─plt$build() 3. └─private$addLimits(margThemed) 4. └─ggplot2::scale_x_continuous(limits = limits, oob = scales::squish) 5. └─ggplot2::continuous_scale(...) 6. └─ggplot2:::check_continuous_limits(limits, call = call) 7. └─ggplot2:::check_numeric(limits, arg = arg, call = call, allow_na = TRUE) 8. └─ggplot2:::check_object(x, is.numeric, what, ..., arg = arg, call = call) 9. └─ggplot2:::stop_input_type(...) 10. └─rlang::abort(message, ..., call = call, arg = arg) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [33s] ERROR Running 'testthat.R' [32s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(faux) ************ Welcome to faux. For support and examples visit: https://debruine.github.io/faux/ - Get and set global package options with: faux_options() ************ > > expect_equal <- function(...) { + testthat::expect_equal(..., check.environment=FALSE) + } > > test_check("faux") [ FAIL 19 | WARN 0 | SKIP 22 | PASS 1351 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • On CRAN (12): 'test-distributions.R:61:3', 'test-distributions.R:92:3', 'test-distributions.R:115:3', 'test-distributions.R:138:3', 'test-distributions.R:162:3', 'test-distributions.R:236:3', 'test-distributions.R:294:3', 'test-distributions.R:318:3', 'test-distributions.R:386:3', 'test-distributions.R:415:3', 'test-plot_design.R:51:3', 'test-plot_design.R:341:3' • Too variable (1): 'test-distributions.R:520:3' • long checking function (1): 'test-norta.R:55:3' • long simulation (8): 'test-norta.R:92:3', 'test-norta.R:112:3', 'test-norta.R:140:3', 'test-norta.R:160:3', 'test-norta.R:186:3', 'test-norta.R:209:3', 'test-norta.R:233:3', 'test-norta.R:295:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-plot_design.R:44:3'): wide2long ────────────────────────────── class(p1) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p1), c("gg", "ggplot")) at test-plot_design.R:44:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:49:3'): wide2long ────────────────────────────── class(p2) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p2), c("gg", "ggplot")) at test-plot_design.R:49:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:73:3'): subset ───────────────────────────────── p1$labels$fill not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(p1$labels$fill, "W1") at test-plot_design.R:73:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:74:3'): subset ───────────────────────────────── p1$labels$colour not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(p1$labels$colour, "W1") at test-plot_design.R:74:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:119:3'): from design ─────────────────────────── s0$labels$fill not equal to "fill". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s0$labels$fill, "fill") at test-plot_design.R:119:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:120:3'): from design ─────────────────────────── s0$labels$colour not equal to "colour". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s0$labels$colour, "colour") at test-plot_design.R:120:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:125:3'): from design ─────────────────────────── s1$labels$fill not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s1$labels$fill, "W1") at test-plot_design.R:125:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:126:3'): from design ─────────────────────────── s1$labels$colour not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s1$labels$colour, "W1") at test-plot_design.R:126:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:176:3'): from data ───────────────────────────── s0$labels$fill not equal to "fill". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s0$labels$fill, "fill") at test-plot_design.R:176:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:177:3'): from data ───────────────────────────── s0$labels$colour not equal to "colour". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s0$labels$colour, "colour") at test-plot_design.R:177:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:182:3'): from data ───────────────────────────── s1$labels$fill not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s1$labels$fill, "W1") at test-plot_design.R:182:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:183:3'): from data ───────────────────────────── s1$labels$colour not equal to "W1". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(s1$labels$colour, "W1") at test-plot_design.R:183:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:231:3'): 2w ──────────────────────────────────── class(p) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p), c("gg", "ggplot")) at test-plot_design.R:231:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:234:3'): 2w ──────────────────────────────────── p$labels$fill not equal to "time". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(p$labels$fill, "time") at test-plot_design.R:234:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:235:3'): 2w ──────────────────────────────────── p$labels$colour not equal to "time". target is NULL, current is character Backtrace: ▆ 1. └─global expect_equal(p$labels$colour, "time") at test-plot_design.R:235:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:245:3'): 2w*2b ───────────────────────────────── class(p) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p), c("gg", "ggplot")) at test-plot_design.R:245:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:257:3'): 2w*2b ───────────────────────────────── class(p) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p), c("gg", "ggplot")) at test-plot_design.R:257:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:271:3'): 2w*2w*2b ────────────────────────────── class(p) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p), c("gg", "ggplot")) at test-plot_design.R:271:3 2. └─testthat::expect_equal(..., check.environment = FALSE) ── Failure ('test-plot_design.R:288:3'): 2w*2w*2b*2b ─────────────────────────── class(p) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 Backtrace: ▆ 1. └─global expect_equal(class(p), c("gg", "ggplot")) at test-plot_design.R:288:3 2. └─testthat::expect_equal(..., check.environment = FALSE) [ FAIL 19 | WARN 0 | SKIP 22 | PASS 1351 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [13s] OK * DONE Status: 2 ERRORs