davidgohel / gdtools
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NEWS has changed.
DESCRIPTION has changed.

@@ -9,9 +9,8 @@
Loading
9 9
#' font_family_exists("Arial")
10 10
#' font_family_exists("Courier")
11 11
#' @export
12 -
#' @importFrom systemfonts match_font
12 +
#' @importFrom systemfonts match_font system_fonts
13 13
font_family_exists <- function( font_family = "sans" ){
14 -
  match_ <- match_font(font_family)
15 -
  match_ <- gsub("([^.]+)\\.[[:alnum:]]+$", "\\1", basename(match_$path) )
16 -
  identical(tolower(match_), tolower(font_family) )
14 +
  datafonts <- system_fonts()
15 +
  tolower(font_family) %in% tolower(datafonts$family)
17 16
}
Files Coverage
R 35.00%
inst/include 11.11%
src 69.89%
Project Totals (13 files) 63.84%
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