Skip to content

Commit 4cc69d0

Browse files
committed
fix dashboard fn to pass tests
1 parent a16d1bb commit 4cc69d0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: githist
22
Title: Code analyses traced along the 'git' history of a package
3-
Version: 0.1.0.014
3+
Version: 0.1.0.015
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ghist_dashboard <- function (results, action = "preview") {
2020
action <- match.arg (action, c ("preview", "render"))
2121
quarto_action <- paste0 ("quarto::quarto_", action)
2222

23+
pkg_name <- results$desc_data$package [1]
24+
2325
results <- daily_average (results, "stats")
2426
results <- daily_average (results, "desc_data")
2527
results <- daily_average (results, "loc")
@@ -28,7 +30,6 @@ ghist_dashboard <- function (results, action = "preview") {
2830
dir <- fs::dir_copy (path_src, fs::path_temp ())
2931
saveRDS (results, fs::path (dir, "results.Rds"))
3032

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

3435
withr::with_dir (dir, {

codemeta.json

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

0 commit comments

Comments
 (0)