* using log directory 'd:/RCompile/CRANincoming/R-devel/see.Rcheck' * using R Under development (unstable) (2024-08-30 r87081 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'see/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'see' version '0.9.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [14s] NOTE Maintainer: 'Indrajeet Patil ' Unknown, possibly misspelled, fields in DESCRIPTION: 'Remotes' * 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 'see' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 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 ... [25s] 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 examples ... [19s] ERROR Running examples in 'see-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot.see_check_dag > ### Title: Plot method for check DAGs > ### Aliases: plot.see_check_dag > > ### ** Examples > > ## Don't show: > if (require("ggdag", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + library(performance) + # incorrect adjustment + dag <- check_dag( + y ~ x + b + c, + x ~ b, + outcome = "y", + exposure = "x" + ) + dag + plot(dag) + + # plot only model with required adjustments + plot(dag, which = "required") + + # collider-bias? + dag <- check_dag( + y ~ x + c + d, + x ~ c + d, + b ~ x, + b ~ y, + outcome = "y", + exposure = "x", + adjusted = "c" + ) + plot(dag) + + # longer labels, automatic detection of outcome and exposure + dag <- check_dag( + QoL ~ age + education + gender, + age ~ education + ) + plot(dag) + ## Don't show: + }) # examplesIf Attaching package: 'ggdag' The following object is masked from 'package:stats': filter > library(performance) > dag <- check_dag(y ~ x + b + c, x ~ b, outcome = "y", exposure = "x") Error in check_dag(y ~ x + b + c, x ~ b, outcome = "y", exposure = "x") : could not find function "check_dag" Calls: -> source -> withVisible -> eval -> eval Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [28s] ERROR Running 'testthat.R' [27s] Running the tests in 'tests/testthat.R' failed. Complete output: > # graphics engine changed in R 4.3, and so snapshots generated on > # previous R version won't work with later R releases > if (require("testthat", quietly = TRUE) && require("vdiffr", quietly = TRUE) && getRversion() >= "4.4.0") { + library(testthat) + library(see) + + test_check("see") + } Starting 2 test processes [ FAIL 3 | WARN 0 | SKIP 12 | PASS 33 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • On CRAN (12): 'test-check_model.R:2:3', 'test-plot.check_normality.R:18:3', 'test-plot.effectsize_table.R:5:3', 'test-plot.compare_parameters.R:20:3', 'test-plot.n_factors.R:7:3', 'test-plot.performance_roc.R:14:3', 'test-plot.performance_pp_check.R:6:3', 'test-scale_color_colorhex_c.R:3:3', 'test-vdiffr_bayestestr_plots.R:11:3', 'test-vdiffr_geoms_coords.R:13:3', 'test-vdiffr_scale_color.R:2:3', 'test-vdiffr_themes.R:11:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot.check_dag.R:7:3'): `plot()` for check_dag ───────────────── Error: 'check_dag' is not an exported object from 'namespace:performance' ── Error ('test-plot.check_dag.R:58:3'): `plot()` for check_dag, multiple adjustment sets ── Error: 'check_dag' is not an exported object from 'namespace:performance' ── Error ('test-plot.check_dag.R:77:3'): `plot()` for check_dag, different total and direct adjustments ── Error: 'check_dag' is not an exported object from 'namespace:performance' [ FAIL 3 | WARN 0 | SKIP 12 | PASS 33 ] Error: Test failures Execution halted * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [14s] OK * DONE Status: 2 ERRORs, 1 NOTE