Skip to content

Commit

Permalink
Tweak vctrs for R 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
galachad committed Oct 3, 2023
1 parent 6ad9bf1 commit 8276bbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/r-renv-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,16 @@ jobs:
# Install latest remotes version
renv::install("remotes", repos = cran_latest)
install_min_version <- function(pkg, version) {
upgrade <- try(packageVersion(pkg) >= version, silent = TRUE)
if (!isTRUE(upgrade)) {
message("Upgrade `", pkg, "` to `", version, "`")
renv::install(paste0(pkg, "@", version), dependencies = "none")
}
}
renv::install("R.cache", dependencies = "Imports")
install_min_version("vctrs", "0.4.1")
renv::install("styler@1.10.2", dependencies = "none")
renv::install("roxygen2@7.2.3", dependencies = "none")
Expand Down

0 comments on commit 8276bbb

Please sign in to comment.