Skip to content

Commit

Permalink
Merge pull request #150 from duckdblabs/f-pkg-review
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed May 5, 2024
2 parents f3f391d + 27a576d commit 4bb0251
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
^cran-comments\.md$
^CRAN-SUBMISSION$
^codecov\.yml$
^R/revdep\.R$
1 change: 1 addition & 0 deletions .sync/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/dplyr-revdep/
/dplyr-cloud/
/problems*/
/cran/
*.tar.gz
20 changes: 20 additions & 0 deletions R/revdep.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pkg_review <- function(pkg, pak = TRUE) {
base_path <- ".sync/cran"
fs::dir_create(base_path)

pkg_path <- fs::path(base_path, pkg)

if (fs::dir_exists(pkg_path)) {
system(paste0("git -C ", pkg_path, " fetch"))
system(paste0("git -C ", pkg_path, " rebase"))
} else {
system(paste0("git -C ", base_path, " clone git@github.com:cran/", pkg))
}

withr::local_dir(pkg_path)
system("rh")

if (pak) {
pak::pak(pkg, dependencies = TRUE, upgrade = TRUE, ask = FALSE)
}
}
1 change: 1 addition & 0 deletions tools/90-patch-dplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ forbidden <- fs::path("R", c(
"overwrite.R",
"qs.R",
"relational-altrep-wrap.R",
"revdep.R",
"restore.R",
"telemetry.R",
"tpch.R",
Expand Down

0 comments on commit 4bb0251

Please sign in to comment.