uribo / jpmesh
Showing 1 of 7 files from the diff.

@@ -12,11 +12,15 @@
Loading
12 12
#' }
13 13
#' @name administration_mesh
14 14
#' @export
15 -
administration_mesh <- function(code, to_mesh_size = c(80, 10, 1)) {
16 -
  if (!to_mesh_size %in% c(80, 10, 1))
17 -
    rlang::abort("`to_mesh_size expects 80, 10 or 1`")
18 -
  to_mesh_size <- units::as_units(to_mesh_size, "km")
19 -
  checked_code <- code_reform(code) # nolint
15 +
administration_mesh <- function(code, to_mesh_size) {
16 +
  to_mesh_size_chr <-
17 +
    as.character(to_mesh_size)
18 +
  rlang::arg_match(to_mesh_size_chr,
19 +
                   c("80", "10", "1"))
20 +
  to_mesh_size <-
21 +
    units::as_units(as.numeric(to_mesh_size), "km")
22 +
  checked_code <-
23 +
    code_reform(code)
20 24
  mis_match <-
21 25
    checked_code[!checked_code %in% c(sprintf("%02d", seq_len(47)),
22 26
                                      unique(df_city_mesh$city_code))]
Files Coverage
R 92.53%
Project Totals (10 files) 92.53%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
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