Skip to content

[ci] [R-package] ERROR: dependency ‘waldo’ is not available #6719

Closed
@jameslamb

Description

@jameslamb

Description

R 3.6 CI jobs here recently started failing, like this:

Warning: dependency ‘waldo’ is not available
...
begin installing package ‘testthat’
make: *** [testthat.ts] Error 1
Makefile:142: recipe for target 'testthat.ts' failed
make: Target 'all' not remade because of errors.
ERROR: dependency ‘waldo’ is not available for package ‘testthat’

(build link)

Reproducible example

Any R 3.6 linux CI jobs here.

Environment info

N/A

Additional Comments

From some initial investigation, it looks like {waldo} 0.6.0 was released about 7 days ago (November 4, 2024). And a 0.6.1 was just posted to CRAN a few days later (link).

Those new versions now require R >= 4.0: r-lib/waldo#196

So we'll probably have to pin to an older version for R 3.6 Ci jobs, like this:

# fix for issue where CRAN was not returning {lattice} and {evaluate} when using R 3.6
# "Warning: dependency ‘lattice’ is not available"
if [[ "${R_MAJOR_VERSION}" == "3" ]]; then
Rscript --vanilla -e "install.packages(c('https://cran.r-project.org/src/contrib/Archive/lattice/lattice_0.20-41.tar.gz', 'https://cran.r-project.org/src/contrib/Archive/evaluate/evaluate_0.23.tar.gz'), repos = NULL, lib = '${R_LIB_PATH}')"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions