Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions R/ansiex.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ ansi_nchar <- function(
#' Substring(s) of an ANSI colored string
#'
#' This is a color-aware counterpart of [base::substr()].
#' It works exactly like the original, but keeps the colors
#' It works like the original, but keeps the colors
#' in the substrings. The ANSI escape sequences are ignored when
#' calculating the positions within the string.
#' Unlike [base::substr()], the replacement form
#' (`ansi_substr(x, start, stop) <- value`) is not supported.
#'
#' @param x Character vector, potentially ANSI styled, or a vector to
#' coerced to character.
Expand Down Expand Up @@ -236,9 +238,11 @@ ansi_substr <- function(x, start, stop) {
#' Substring(s) of an ANSI colored string
#'
#' This is the color-aware counterpart of [base::substring()].
#' It works exactly like the original, but keeps the colors in the
#' It works like the original, but keeps the colors in the
#' substrings. The ANSI escape sequences are ignored when
#' calculating the positions within the string.
#' Unlike [base::substring()], the replacement form
#' (`substring(text, first, last) <- value`) is not supported.
#'
#' @param text Character vector, potentially ANSI styled, or a vector to
#' coerced to character. It is recycled to the longest of `first`
Expand Down
2 changes: 1 addition & 1 deletion R/bullets.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cli_bullets <- function(

#' List of verbatim items
#'
#' `cli_format_bullets_raw()` is similar to [cli_bullets()], but it does
#' `cli_bullets_raw()` is similar to [cli_bullets()], but it does
#' not perform any inline styling or glue substitutions in the input.
#'
#' `format_bullets_raw()` returns the output instead of printing it.
Expand Down
1 change: 1 addition & 0 deletions R/format-conditions.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#' @param message It is formatted via a call to [cli_bullets()].
#' @param .envir Environment to evaluate the glue expressions in.
#'
#' @return A character string containing the formatted message.
#' @seealso These functions support [inline markup][inline-markup].
#' @family functions supporting inline markup
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/ruler.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#' Print the helpful ruler to the screen
#'
#' @return `NULL`, invisibly. Called for its side effect of printing a
#' ruler to the screen.
#' @export
#' @param width Ruler width.
#' @examples
Expand Down
1 change: 1 addition & 0 deletions R/simple-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#' Detection usually works in recent RStudio versions, and in iTerm
#' on macOS, but not on other platforms.
#'
#' @return A named list that can be used as a cli theme.
#' @seealso [themes], [builtin_theme()].
#' @export

Expand Down
2 changes: 2 additions & 0 deletions R/spark.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#' ```
#'
#' @param x A numeric vector between 0 and 1
#' @return A character string of class `cli_spark_bar` and `cli_spark`.
#' @export
#' @seealso [spark_line()]

Expand Down Expand Up @@ -95,6 +96,7 @@ spark_bar_chars <- function(x, bars = NULL) {
#' ```
#'
#' @inheritParams spark_bar
#' @return A character string of class `cli_spark_line` and `cli_spark`.
#' @export
#' @seealso [spark_bar()]

Expand Down
2 changes: 2 additions & 0 deletions R/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
#' * `"all"`: turn on all hyperlinks,
#' * `"none"`: turn off all hyperlinks.
#'
#' @return The return value of [testthat::test_that()] for the last
#' configuration tested (invisibly).
#' @export
#' @examples
#' # testthat cannot record or compare snapshots when you run these
Expand Down
4 changes: 3 additions & 1 deletion man/ansi_substr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/ansi_substring.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/format_error.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/ruler.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/simple_theme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/spark_bar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/spark_line.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/test_that_cli.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading