Skip to content

CRAN check issue with noSuggests #175

@simonpcouch

Description

@simonpcouch

Currently seeing failures without Suggests:

* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/workflowsets.Rcheck’
* using R Under development (unstable) (2025-05-15 r88203)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    gcc-15 (GCC) 15.1.0
    GNU Fortran (GCC) 15.1.0
* running under: Fedora Linux 40 (Workstation Edition)
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘workflowsets/DESCRIPTION’ ... OK
* this is package ‘workflowsets’ version ‘1.1.0’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... INFO
Package suggested but not available for checking: ‘kknn’
* 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 ‘workflowsets’ can be installed ... [34s/70s] 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 ... [7s/15s] OK
* checking whether the package can be loaded with stated dependencies ... [6s/16s] OK
* checking whether the package can be unloaded cleanly ... [6s/10s] OK
* checking whether the namespace can be loaded with stated dependencies ... [6s/11s] OK
* checking whether the namespace can be unloaded cleanly ... [7s/11s] OK
* checking loading without being on the library search path ... [7s/13s] OK
* checking whether startup messages can be suppressed ... [7s/14s] 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 ... [38s/61s] 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 contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... 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 ... [14s/23s] ERROR
Running examples in ‘workflowsets-Ex.R’ failed
The error most likely occurred in:

> ### Name: leave_var_out_formulas
> ### Title: Create formulas without each predictor
> ### Aliases: leave_var_out_formulas
> 
> ### ** Examples
> 
> data(penguins, package = "modeldata")
Error in find.package(package, lib.loc, verbose = verbose) : 
  there is no package called ‘modeldata’
Calls: data -> find.package
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘spelling.R’
  Running ‘testthat.R’ [46s/56s]
 [47s/58s] ERROR
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(workflowsets)
  > 
  > test_check("workflowsets")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'rsample'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  
  Attaching package: 'rlang'
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_null, is_true
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 333 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (13): 'test-autoplot.R:53:3', 'test-checks.R:5:3',
    'test-collect-notes.R:1:1', 'test-collect-predictions.R:1:1',
    'test-comments.R:86:3', 'test-fit.R:1:1', 'test-fit_best.R:2:4',
    'test-fit_best.R:56:4', 'test-options.R:64:4', 'test-predict.R:1:1',
    'test-workflow_set.R:168:4', 'test-workflow_set.R:226:4',
    'test-workflow_set.R:412:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract.R:4:1'): (code run outside of `test_that()`) ───────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'modeldata'
  Backtrace:
      ▆
   1. └─utils::data(Chicago, package = "modeldata") at test-extract.R:4:1
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-updates.R:5:1'): (code run outside of `test_that()`) ───────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'modeldata'
  Backtrace:
      ▆
   1. └─utils::data(two_class_dat, package = "modeldata") at test-updates.R:5:1
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-workflow-map.R:4:1'): (code run outside of `test_that()`) ──────
  <packageNotFoundError/error/condition>
  Error in `library(kknn)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─base::library(kknn) at test-workflow-map.R:4:1
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 333 ]
  Error: Test failures
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... OK
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without index ... OK
* checking HTML version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 2 ERRORs, 1 WARNING
See
  ‘/data/gannet/ripley/R/packages/tests-Suggests/workflowsets.Rcheck/00check.log’
for details.

Command exited with non-zero status 1
Time 8:01.66, 266.79 + 22.75

Deadline is the 29th.

cc @hfrick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions