PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
199 stars 231 forks source link

Misc fixes found when running package checks on newer releases of R #3237

Closed infotroph closed 4 months ago

infotroph commented 7 months ago

Description

Motivation and Context

Review Time Estimate

Types of changes

Checklist:

infotroph commented 6 months ago

Probably need to merge #3244 first to resolve current CI failures

mdietze commented 5 months ago

@infotroph there are merge conflicts that need to be resolved in order to pull this one in

infotroph commented 5 months ago

Local debugging of the current check failures on 4.1 shows they're from dplyr refusing to load because the installed version of tidyselect was too old.

This was caused by the remotes::install_version(pkg, dependencies = TRUE, upgrade = FALSE) added to pecan.depends.R in #3244: Apparently "dependencies = TRUE" only installs dependencies that are not already installed, and does not upgrade ones with installed but unsuitable versions.

Options I see: switch to upgrade = TRUE and accept that will pull in large numbers of updates to old systems, or parse dependencies ourselves inside ensure_version to upgrade only as far as the package requires.

infotroph commented 4 months ago

All checks are passing, so I'll merge this today unless anyone speaks up before then.

Substantive changes since the last review: