r-lib / gargle
Showing 1 of 3 files from the diff.

@@ -449,11 +449,16 @@
Loading
449 449
  path_home(".R", "gargle", "gargle-oauth")
450 450
}
451 451
452 -
# TODO: Why doesn't this consult the option?
453 -
# TODO: when the cache relocation dust has settled,
454 -
# delete this function and replace with gargle_default_oauth_cache_path()
455 -
# exists just for passive cache discovery
452 +
# main point of this is **passive** cache discovery
456 453
cache_locate <- function() {
454 +
  option_cache <- gargle_oauth_cache()
455 +
  if (is_scalar_character(option_cache)) {
456 +
    gargle_info(c(
457 +
      "i" = 'Taking cache location from the {.code "gargle_oauth_cache"} option'
458 +
    ))
459 +
    return(option_cache)
460 +
  }
461 +
457 462
  default_cache <- gargle_default_oauth_cache_path()
458 463
  if (dir_exists(default_cache)) {
459 464
    return(default_cache)
Files Coverage
R 61.96%
Project Totals (28 files) 61.96%
1
comment: false
2

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