Skip to content

Commit

Permalink
fix dashboard fn to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jul 16, 2024
1 parent a16d1bb commit 4cc69d0
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: githist
Title: Code analyses traced along the 'git' history of a package
Version: 0.1.0.014
Version: 0.1.0.015
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/quarto-dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ghist_dashboard <- function (results, action = "preview") {
action <- match.arg (action, c ("preview", "render"))
quarto_action <- paste0 ("quarto::quarto_", action)

pkg_name <- results$desc_data$package [1]

results <- daily_average (results, "stats")
results <- daily_average (results, "desc_data")
results <- daily_average (results, "loc")
Expand All @@ -28,7 +30,6 @@ ghist_dashboard <- function (results, action = "preview") {
dir <- fs::dir_copy (path_src, fs::path_temp ())
saveRDS (results, fs::path (dir, "results.Rds"))

pkg_name <- results$desc_data$package [1]
quarto_insert_pkg_name (dir, pkg_name)

withr::with_dir (dir, {
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/githist",
"issueTracker": "https://github.com/ropensci-review-tools/githist/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.014",
"version": "0.1.0.015",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 4cc69d0

Please sign in to comment.