Skip to content

Commit e1adb92

Browse files
need pkg qualifier for example with internal function
1 parent 34167e8 commit e1adb92

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

R/utils.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ line_col_names <- function() {
66

77
#' Ensure there is one (and only one) blank line at the end of a vector
88
#' @examples
9-
#' ensure_last_is_empty("")
10-
#' ensure_last_is_empty(letters)
11-
#' ensure_last_is_empty(c(letters, "", "", ""))
9+
#' styler:::ensure_last_is_empty("")
10+
#' styler:::ensure_last_is_empty(letters)
11+
#' styler:::ensure_last_is_empty(c(letters, "", "", ""))
1212
#' @keywords internal
1313
ensure_last_is_empty <- function(x) {
1414
if (all(x == "")) {
@@ -23,11 +23,11 @@ ensure_last_is_empty <- function(x) {
2323
#'
2424
#' @param text A character vector
2525
#' @examples
26-
#' ensure_newline_is_linebreak("x\n2")
26+
#' styler:::convert_newlines_to_linebreaks("x\n2")
2727
#' # a simple strsplit approach does not cover both cases
2828
#' unlist(strsplit("x\n\n2", "\n", fixed = TRUE))
2929
#' unlist(strsplit(c("x", "", "2"), "\n", fixed = TRUE))
30-
#' ensure_newline_is_linebreak(c("x", "2"))
30+
#' styler:::convert_newlines_to_linebreaks(c("x", "2"))
3131
#' @keywords internal
3232
convert_newlines_to_linebreaks <- function(text) {
3333
split <- strsplit(text, "\n", fixed = TRUE)

man/convert_newlines_to_linebreaks.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ensure_last_is_empty.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/invalid_utf8.Rd

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)