Skip to content

Commit

Permalink
skip dl tarball in update fn #56 if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 14, 2024
1 parent 38aa212 commit 3cbf7f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgstats
Title: Metrics of R Packages
Version: 0.1.6.016
Version: 0.1.6.017
Authors@R:
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
5 changes: 4 additions & 1 deletion R/cran-data-update.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ dl_one_tarball <- function (results_path, tarball) {
url <- paste0 (cran_url, tarball)
path <- fs::path (results_path, tarball)

(!fs::file_exists (path))
if (fs::file_exists (path)) {
return (NULL)
}

req <- httr2::request (url) |>
httr2::req_headers ("Accept" = "application/octet-stream")
resp <- httr2::req_perform (req)
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgstats",
"issueTracker": "https://github.com/ropensci-review-tools/pkgstats/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.6.016",
"version": "0.1.6.017",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 3cbf7f1

Please sign in to comment.