Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -1,19 +1,28 @@
Loading
1 1
#' Check Number of Characters
2 -
#' 
2 +
#'
3 3
#' Checks the number of characters in the elements of an object.
4 4
#'
5 5
#' @inheritParams params
6 -
#' @param nchar A flag indicating whether x should have characters or a missing value indicating no requirements or a count or count range of the number of characters.
7 -
#' 
6 +
#' @param nchar A flag indicating whether x should have characters or a missing
7 +
#'   value indicating no requirements or a count or count range of the number of
8 +
#'   characters.
9 +
#'
8 10
#' @return An invisible copy of x (if it doesn't throw an error).
9 11
#' @seealso \code{\link{check_pattern}} and \code{\link{check_regex}}
10 12
#' @export
11 13
#'
12 14
#' @examples
13 15
#' check_nchar(c("foo", "bar"), nchar = 3)
14 -
check_nchar <- function(x, nchar = TRUE, x_name = substitute(x),
15 -
                         error = TRUE) {
16 -
  lifecycle::deprecate_soft("0.5.1", "check_nchar()", "chk::chk_match()")
16 +
check_nchar <- function(x, 
17 +
                        nchar = TRUE, 
18 +
                        x_name = substitute(x),
19 +
                        error = TRUE) {
20 +
  lifecycle::deprecate_soft(
21 +
    "0.5.1", 
22 +
    "check_nchar()", 
23 +
    NULL, 
24 +
    "Please use `chk::chk_equal()` with nchar() or `chk::chk_match()` instead."
25 +
  )
17 26
  x_name <- chk_deparse(x_name)
18 27
19 28
  check_flag_internal(error)
Files Coverage
R 92.53%
Project Totals (51 files) 92.53%
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