diff --git a/DESCRIPTION b/DESCRIPTION index 6d30740..64151af 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")) diff --git a/R/quarto-dashboard.R b/R/quarto-dashboard.R index e9e7651..101823d 100644 --- a/R/quarto-dashboard.R +++ b/R/quarto-dashboard.R @@ -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.") } diff --git a/codemeta.json b/codemeta.json index 913b771..bd6253f 100644 --- a/codemeta.json +++ b/codemeta.json @@ -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",