Skip to content

Commit 58dbc43

Browse files
committed
retain extra cols for dashboard analyses
1 parent 4cc69d0 commit 58dbc43

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
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.015
3+
Version: 0.1.0.016
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-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ 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-
2523
results <- daily_average (results, "stats")
2624
results <- daily_average (results, "desc_data")
2725
results <- daily_average (results, "loc")
@@ -30,6 +28,7 @@ ghist_dashboard <- function (results, action = "preview") {
3028
dir <- fs::dir_copy (path_src, fs::path_temp ())
3129
saveRDS (results, fs::path (dir, "results.Rds"))
3230

31+
pkg_name <- results$desc_data$package [1]
3332
quarto_insert_pkg_name (dir, pkg_name)
3433

3534
withr::with_dir (dir, {
@@ -41,7 +40,7 @@ daily_average <- function (results, what = "stats") {
4140

4241
results [[what]]$date <- lubridate::ymd (strftime (results [[what]]$date, "%y-%m-%d"))
4342

44-
cols <- c ("language", "dir", "date")
43+
cols <- c ("package", "date", "language", "dir", "measure")
4544
cols <- cols [which (cols %in% names (results [[what]]))]
4645

4746
results [[what]] <- dplyr::group_by (results [[what]], dplyr::across (dplyr::all_of (cols))) |>

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.015",
11+
"version": "0.1.0.016",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)