Skip to content

Commit b40fcea

Browse files
authored
Merge pull request #220 from ropensci-review-tools/cran-update
fix bug in cran-update code
2 parents 5568aea + 0693ee4 commit b40fcea

File tree

12 files changed

+5411
-5409
lines changed

12 files changed

+5411
-5409
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pkgmatch
22
Title: Find R Packages Matching Either Descriptions or Other R Packages
3-
Version: 0.5.0.095
3+
Version: 0.5.0.098
44
Authors@R: c(
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265")),

R/data-update-cran.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ list_new_cran_updates <- function (flist, latest_only = TRUE) {
174174
cran_new <- cran_tarball [index]
175175

176176
# And include any which do not have data in all 5 structures:
177-
cran_new <- unique (c (cran_new, names (pkgs) [which (pkgs < 5L)]))
177+
extra <- names (pkgs) [which (pkgs < 5L)]
178+
index <- match (extra, gsub ("\\_[0-9].*$", "", cran_tarball))
179+
cran_new <- unique (c (cran_new, cran_tarball [index]))
178180

179181
# Remove old versions from all data
180182
cran_new_pkg <- gsub ("\\_.*$", "", cran_new)

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/pkgmatch",
99
"issueTracker": "https://github.com/ropensci-review-tools/pkgmatch/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "0.5.0.095",
11+
"version": "0.5.0.098",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)