Skip to content

Commit

Permalink
allow some empty tables in dashboard fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Dec 10, 2024
1 parent f020bd8 commit 11d331a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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.007
Version: 0.1.3.008
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
3 changes: 3 additions & 0 deletions R/quarto-dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ check_dashboard_arg <- function (data) {
}

nrows <- vapply (data$rm [index], nrow, integer (1L))
# These tables may be empty
maybe_empty <- c ("dependencies", "releases_from_gh_api", "repo_forks")
nrows <- nrows [which (!names (nrows) %in% maybe_empty)]
if (!all (nrows > 0L)) {
cli::cli_abort ("'data' contains empty tables.")
}
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.007",
"version": "0.1.3.008",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 11d331a

Please sign in to comment.