Skip to content

Commit

Permalink
Update utils.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Sep 6, 2024
1 parent 8d74554 commit dd620c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,19 @@

insight::format_error("The `rvar_col` argument must be a single, valid column name.")
}

#' @keywords internal
.clean_distributional <- function (d) {

Check warning on line 276 in R/utils.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/utils.R,line=276,col=34,[function_left_parentheses_linter] Remove spaces before the left parenthesis in a function definition.
nm <- format(d)
attributes(d) <- NULL
names(d) <- nm
d
}

#' @keywords internal
.is_discrete_dist <- function (d) {

Check warning on line 284 in R/utils.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/utils.R,line=284,col=30,[function_left_parentheses_linter] Remove spaces before the left parenthesis in a function definition.
inherits(d, c("dist_bernoulli", "dist_binomial", "dist_categorical",
"dist_geometric", "dist_logarithmic", "dist_multinomial",
"dist_negative_binomial", "dist_poisson",
"dist_poisson_inverse_gaussian"))
}

Check warning on line 289 in R/utils.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/utils.R,line=289,col=2,[trailing_blank_lines_linter] Add a terminal newline.

0 comments on commit dd620c8

Please sign in to comment.