Skip to content

Commit 4e00ac3

Browse files
committed
Fix missing epiprocess::: in internal examples; addr line length lint
1 parent 02d4d26 commit 4e00ac3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

R/utils.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ format_chr_deparse <- function(x) {
109109
#' @return chr; same `length` as `x` if `x` had nonzero length; value of `empty` otherwise
110110
#'
111111
#' @examples
112-
#' cli::cli_inform('{format_chr_with_quotes("x")}')
113-
#' cli::cli_inform('{format_chr_with_quotes(c("x","y"))}')
112+
#' cli::cli_inform('{epiprocess:::format_chr_with_quotes("x")}')
113+
#' cli::cli_inform('{epiprocess:::format_chr_with_quotes(c("x","y"))}')
114114
#' nms <- c("x", "\"Total Cases\"")
115-
#' cli::cli_inform("{format_chr_with_quotes(nms)}")
116-
#' cli::cli_inform("{format_chr_with_quotes(character())}")
115+
#' cli::cli_inform("{epiprocess:::format_chr_with_quotes(nms)}")
116+
#' cli::cli_inform("{epiprocess:::format_chr_with_quotes(character())}")
117117
#'
118118
#' @keywords internal
119119
format_chr_with_quotes <- function(x, empty = "*none*") {

man/format_chr_with_quotes.Rd

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-compactify.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ test_that("compactify works on distributions", {
134134
.pred_distn = c(
135135
quantile_pred_once(c(1, 5, 9), c(0.1, 0.5, 0.9)),
136136
quantile_pred_once(c(1, NA, 9), c(0.1, 0.5, 0.9)), # single NA in quantiles
137-
quantile_pred_once(c(NA, NA, NA), c(0.1, 0.5, 0.9)), # all NAs in quantiles (hardhat+vctrs+epipredict treats as missing)
137+
quantile_pred_once(c(NA, NA, NA), c(0.1, 0.5, 0.9)), # all NAs in quantiles
138138
quantile_pred_once(c(1, 5, 9), c(0.1, 0.5, 0.9)), # and back
139139
quantile_pred_once(c(3, 5, 9), c(0.1, 0.5, 0.9)), # change quantile
140140
quantile_pred_once(c(3, 5, 9), c(0.1, 0.5, 0.9)) # LOCF

0 commit comments

Comments
 (0)