davidski / collector
Showing 1 of 8 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.
inst/WORDLIST has changed.
R/utils-pipe.R has changed.
NEWS.md has changed.
cran-comments.md has changed.
man/pipe.Rd has changed.

@@ -11,7 +11,7 @@
Loading
11 11
#' @param questions \code{\link{tidyrisk_question_set}} object.
12 12
#' @param output_dir Directory to place scorecards.
13 13
#'
14 -
#' @return An invisible null.
14 +
#' @return Invisibly returns the full path to the saved scorecard.
15 15
#' @export
16 16
#' @importFrom dplyr mutate row_number if_else
17 17
#' @importFrom rlang .data
@@ -48,7 +48,7 @@
Loading
48 48
  gg <- ggplot(dat, aes_string(x = "column", y = "row", label = "id")) +
49 49
    geom_tile(aes(fill = "highlight"), alpha = 0.5, color = "black") +
50 50
    scale_fill_manual(values = c("N" = "white", "Y" = "lightslategray"),
51 -
                      guide = FALSE) +
51 +
                      guide = "none") +
52 52
    coord_equal() + geom_text() + scale_y_reverse() +
53 53
    theme_void() +
54 54
    theme(axis.text = element_blank(), panel.grid = element_blank()) +
@@ -60,7 +60,7 @@
Loading
60 60
  gg_cap <- ggplot(dat, aes_string(x = "column", y = "row", label = "id")) +
61 61
    geom_tile(aes_string(fill = "highlight"), alpha = 0.5, color = "black") +
62 62
    scale_fill_manual(values = c("N" = "white", "Y" = "lightslategray"),
63 -
                      guide = FALSE) +
63 +
                      guide = "none") +
64 64
    coord_equal() + geom_text() + scale_y_reverse() +
65 65
    theme_void() +
66 66
    theme(axis.text = element_blank(), panel.grid = element_blank()) +
@@ -73,9 +73,7 @@
Loading
73 73
  filename <- tolower(sme) %>% stringr::str_replace_all(" ", "_") %>%
74 74
    paste0(., "_scorecard.pdf")
75 75
  result <- ggplot2::ggsave(combo, filename = file.path(output_dir, filename))
76 -
  if (length(result$warnings) > 0) {
77 -
    warning(warnings, call. = FALSE)}
78 -
  invisible(NULL)
76 +
  invisible(result)
79 77
}
80 78
81 79
#' @export
Files Coverage
R 93.91%
Project Totals (10 files) 93.91%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading