Skip to content

Commit 11d331a

Browse files
committed
allow some empty tables in dashboard fn
1 parent f020bd8 commit 11d331a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: repometrics
22
Title: Metrics for Your Code Repository
3-
Version: 0.1.3.007
3+
Version: 0.1.3.008
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/quarto-dashboard.R

+3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ check_dashboard_arg <- function (data) {
141141
}
142142

143143
nrows <- vapply (data$rm [index], nrow, integer (1L))
144+
# These tables may be empty
145+
maybe_empty <- c ("dependencies", "releases_from_gh_api", "repo_forks")
146+
nrows <- nrows [which (!names (nrows) %in% maybe_empty)]
144147
if (!all (nrows > 0L)) {
145148
cli::cli_abort ("'data' contains empty tables.")
146149
}

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.3.007",
11+
"version": "0.1.3.008",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)