Skip to content

Commit

Permalink
Merge pull request #588 from lorenzwalthert/hook-dependencies-update
Browse files Browse the repository at this point in the history
Hook dependencies update
  • Loading branch information
lorenzwalthert authored Sep 15, 2024
2 parents 2b97d98 + 5fd0f12 commit 631b0cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions inst/update-dependency-graph-existing-packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ hook_deps <- function(root) {

source("inst/update-renv-prepare.R")
source("renv/activate.R")
renv::restore()
options(renv.snapshot.filter = hook_deps)

renv::snapshot(type = "custom", prompt = FALSE)
2 changes: 1 addition & 1 deletion inst/update-existing-hook-dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ renv_deps <- names(jsonlite::read_json("renv.lock")$Packages)
source("renv/activate.R")
renv::load()
renv::restore(prompt = FALSE)
can_be_updated <- renv::update(setdiff(renv_deps, "renv"), prompt = FALSE, check = FALSE)
can_be_updated <- renv::update(renv_deps, prompt = FALSE, check = FALSE)
renv::snapshot(packages = renv_deps, prompt = FALSE)
23 changes: 12 additions & 11 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Repositories": [
{
"Name": "RSPM",
"URL": "https://packagemanager.posit.co/cran/2024-07-29"
"URL": "https://packagemanager.posit.co/cran/2024-09-12"
}
]
},
Expand Down Expand Up @@ -144,13 +144,13 @@
},
"cpp11": {
"Package": "cpp11",
"Version": "0.4.7",
"Version": "0.5.0",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R"
],
"Hash": "5a295d7d963cc5035284dcdbaf334f4e"
"Hash": "91570bba75d0c9d3f1040c835cee8fba"
},
"crayon": {
"Package": "crayon",
Expand Down Expand Up @@ -193,14 +193,14 @@
},
"digest": {
"Package": "digest",
"Version": "0.6.36",
"Version": "0.6.37",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"utils"
],
"Hash": "fd6824ad91ede64151e93af67df6376b"
"Hash": "33698c4b3127fc9f506654607fb73676"
},
"docopt": {
"Package": "docopt",
Expand Down Expand Up @@ -268,15 +268,15 @@
},
"hunspell": {
"Package": "hunspell",
"Version": "3.0.3",
"Version": "3.0.4",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"Rcpp",
"digest"
],
"Hash": "e957e989ea17f937964f0d46b0f0bca0"
"Hash": "f543163714aba1ff9e8cfe76d8d15381"
},
"knitr": {
"Package": "knitr",
Expand Down Expand Up @@ -583,27 +583,28 @@
},
"withr": {
"Package": "withr",
"Version": "3.0.0",
"Version": "3.0.1",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"grDevices",
"graphics"
],
"Hash": "d31b6c62c10dcf11ec530ca6b0dd5d35"
"Hash": "07909200e8bbe90426fbfeb73e1e27aa"
},
"xfun": {
"Package": "xfun",
"Version": "0.46",
"Version": "0.47",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"grDevices",
"stats",
"tools"
],
"Hash": "00ce32f398db0415dde61abfef11300c"
"Hash": "36ab21660e2d095fef0d83f689e0477c"
},
"xml2": {
"Package": "xml2",
Expand Down

0 comments on commit 631b0cb

Please sign in to comment.