tidyverse / glue
Showing 1 of 1 files from the diff.
Newly tracked file
R/glue.R changed.

@@ -36,6 +36,12 @@
Loading
36 36
#'   (especially, its name) as experimental.
37 37
#' @param .trim \[`logical(1)`: \sQuote{TRUE}]\cr Whether to trim the input
38 38
#'   template with [trim()] or not.
39 +
#'
40 +
#' @details
41 +
#' If `glue_data` is called with both `.x` and temporary variable via named
42 +
#' arguments, both will be used to lookup values, with named arguments taking
43 +
#' precedence.
44 +
#'
39 45
#' @seealso <https://www.python.org/dev/peps/pep-0498/> and
40 46
#'   <https://www.python.org/dev/peps/pep-0257/> upon which this is based.
41 47
#' @examples
@@ -77,6 +83,9 @@
Loading
77 83
#'
78 84
#' }}
79 85
#'
86 +
#' # `glue_data()` gives preference to named arguments over `.x` elements
87 +
#' glue_data("SELECT {x} + {y}", .x = list(x = 1, y = 2), x = 3)
88 +
#'
80 89
#' # Alternative delimiters can also be used if needed
81 90
#' one <- "1"
82 91
#' glue("The value of $e^{2\\pi i}$ is $<<one>>$.", .open = "<<", .close = ">>")
Files Coverage
R 97.49%
src 100.00%
Project Totals (11 files) 98.77%
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