* using log directory ‘/srv/hornik/tmp/CRAN_pretest/lemon.Rcheck’ * using R Under development (unstable) (2025-09-01 r88761) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3+b1) Debian flang-new version 19.1.7 (3+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘lemon/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘lemon’ version ‘0.5.1’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/6s] WARNING Maintainer: ‘Stefan McKinnon Edwards ’ Insufficient package version (submitted: 0.5.1, existing: 0.5.1) * 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 serialization versions ... OK * checking whether package ‘lemon’ can be installed ... [4s/4s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard file/directory found at top level: ‘Rplots.pdf’ * 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [6s/6s] OK * checking Rd files ... [0s/0s] 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 ... [11s/11s] ERROR Running examples in ‘lemon-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: reposition_legend > ### Title: Reposition a legend onto a panel > ### Aliases: reposition_legend > > ### ** Examples > > library(ggplot2) > dsamp <- diamonds[sample(nrow(diamonds), 1000), ] > (d <- ggplot(dsamp, aes(carat, price)) + + geom_point(aes(colour = clarity))) > > reposition_legend(d + theme(legend.position='bottom'), 'bottom right') > > # To change the orientation of the legend, use theme's descriptors. > reposition_legend(d + theme(legend.position='bottom'), 'top left') > > # Use odd specifications, here offset the legend with half its height from the bottom. > reposition_legend(d + theme(legend.position='bottom'), x=0.3, y=0, just=c(0, -0.5)) > > # For using with facets: > reposition_legend(d + facet_grid(.~cut), 'top left', panel = 'panel-5-1') Error in reposition_legend(d + facet_grid(. ~ cut), "top left", panel = "panel-5-1") : Could not find panel named `panel-5-1`. Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [2s/2s] ERROR Running ‘testthat.R’ [2s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(lemon) > > > if (TRUE) { + test_check("lemon") + } #else { [ FAIL 1 | WARN 1 | SKIP 5 | PASS 145 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On CRAN (5): 'test_brackets.R:88:5', 'test_caps.R:38:3', 'test_facet.R:22:3', 'test_facet.R:55:3', 'test_facet_aux.R:60:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_lemon_plot.r:14:3'): ggplot2 does not break lemon_plot by altering class ── Error in `l + data.frame(a = 3, b = 0, c = "a")`: non-numeric argument to binary operator Backtrace: ▆ 1. └─lemon (local) expect_lemon_plot(l + data.frame(a = 3, b = 0, c = "a")) at test_lemon_plot.r:14:3 2. └─testthat::expect_s3_class(object, "lemon_plot") at test_lemon_plot.r:5:22 3. └─testthat::quasi_label(enquo(object), arg = "object") 4. └─rlang::eval_bare(expr, quo_get_env(quo)) [ FAIL 1 | WARN 1 | SKIP 5 | PASS 145 ] Deleting unused snapshots: • facet/facet-rep-wrap-spacing.svg • facet_aux/facet-rep-wrap.svg Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [31s/31s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘capped-axes.Rmd’ using rmarkdown --- finished re-building ‘capped-axes.Rmd’ --- re-building ‘facet-rep-labels.Rmd’ using rmarkdown --- finished re-building ‘facet-rep-labels.Rmd’ --- re-building ‘geoms.Rmd’ using rmarkdown --- finished re-building ‘geoms.Rmd’ --- re-building ‘gtable_show_lemonade.Rmd’ using rmarkdown --- finished re-building ‘gtable_show_lemonade.Rmd’ --- re-building ‘legends.Rmd’ using rmarkdown Quitting from legends.Rmd:178-180 [reposition_legend_facet1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `reposition_legend()`: ! Could not find panel named `panel-5-1`. --- Backtrace: ▆ 1. └─lemon::reposition_legend(d2, "top left", panel = "panel-5-1") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'legends.Rmd' failed with diagnostics: Could not find panel named `panel-5-1`. --- failed re-building ‘legends.Rmd’ --- re-building ‘lemon_print.Rmd’ using rmarkdown --- finished re-building ‘lemon_print.Rmd’ SUMMARY: processing the following file failed: ‘legends.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [4s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 3 ERRORs, 1 WARNING, 1 NOTE