Skip to content

Commit

Permalink
fix dependency parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Dec 10, 2024
1 parent 4e9f51f commit 9222a55
Show file tree
Hide file tree
Showing 3 changed files with 4 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: repometrics
Title: Metrics for Your Code Repository
Version: 0.1.3.009
Version: 0.1.3.010
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
3 changes: 2 additions & 1 deletion R/data-dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ rm_data_dependencies <- function (path) {
vers <- regmatches (i, regexpr ("\\s\\(.*$", i))
null2na_char (gsub ("^\\s|\\(|\\)", "", vers))
}, character (1L), USE.NAMES = FALSE)
name <- gsub ("(\\s|\\().*$", "", name)
name <- gsub ("\\s*", "", name)
name <- gsub ("\\(.*$", "", name)
n <- length (name)

cbind (name, type = rep (f, n), version)
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/repometrics",
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.3.009",
"version": "0.1.3.010",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 9222a55

Please sign in to comment.