Skip to content

Commit 71900e0

Browse files
committed
Use cli::cli_warn() instead of warn().
1 parent e8c4196 commit 71900e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/stat-density.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fit_data_to_bounds <- function(bounds, x, w) {
167167
is_inside_bounds <- (bounds[1] <= x) & (x <= bounds[2])
168168

169169
if (any(!is_inside_bounds)) {
170-
warn("Some data points are outside of `bounds`. Removing them.")
170+
cli::cli_warn("Some data points are outside of `bounds`. Removing them.")
171171
x <- x[is_inside_bounds]
172172
w <- w[is_inside_bounds]
173173
w_sum <- sum(w)

0 commit comments

Comments
 (0)