Skip to content

Commit

Permalink
fix 'list_new_cran_updates' for #56 when no new updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 5, 2024
1 parent 02a7f4e commit 177d731
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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.5.026
Version: 0.1.5.027
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
7 changes: 5 additions & 2 deletions R/cran-data-update.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ list_new_cran_updates <- function (prev_results) {
cran_tarball <- paste0 (cran_pkgs$Package, "_", cran_pkgs$Version)

cran_pkgs <- cran_pkgs [which (!cran_tarball %in% prev_tarball), ]
paste0 (cran_pkgs$Package, "_", cran_pkgs$Version)

ret <- character (0L)
if (nrow (cran_pkgs) > 0) {
ret <- paste0 (cran_pkgs$Package, "_", cran_pkgs$Version)
}
return (ret)
}

one_summary_from_cran <- function (i,
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.5.026",
"version": "0.1.5.027",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 177d731

Please sign in to comment.