#337 Add whitespace wrap as default, close #335

Open Raymond Patterson rjpat

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

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

@@ -10,6 +10,8 @@
Loading
10 10
#'  each paragraph
11 11
#' @param exdent non-negative integer giving indentation of following lines in
12 12
#'  each paragraph
13 +
#' @param whitespace_only logical value to determine if breaks should occur
14 +
#'  only at white-spaces.
13 15
#' @return A character vector of re-wrapped strings.
14 16
#' @export
15 17
#' @examples
@@ -21,10 +23,11 @@
Loading
21 23
#' cat(str_wrap(thanks, width = 60, indent = 2), "\n")
22 24
#' cat(str_wrap(thanks, width = 60, exdent = 2), "\n")
23 25
#' cat(str_wrap(thanks, width = 0, exdent = 2), "\n")
24 -
str_wrap <- function(string, width = 80, indent = 0, exdent = 0) {
26 +
str_wrap <- function(string, width = 80, indent = 0, exdent = 0,
27 +
                     whitespace_only = TRUE) {
25 28
  if (width <= 0) width <- 1
26 29
27 30
  out <- stri_wrap(string, width = width, indent = indent, exdent = exdent,
28 -
    simplify = FALSE)
31 +
    whitespace_only = whitespace_only, simplify = FALSE)
29 32
  vapply(out, str_c, collapse = "\n", character(1))
30 33
}

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 88.15%
Project Totals (27 files) 88.15%
Loading