Skip to content

Commit

Permalink
update lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Dec 10, 2023
1 parent 24b74ac commit 65cba17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ linters: linters_with_defaults(
assignment_linter = NULL,
commented_code_linter = NULL,
cyclocomp_linter(25L),
extraction_operator_linter = NULL,
if_not_else_linter(exceptions = character(0L)),
implicit_integer_linter = NULL,
library_call_linter = NULL,
Expand Down
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#' @keywords internal
.is_palette_sufficient <- function(package, palette, min_length) {
palette_length <- paletteer::palettes_d_names %>%
filter(package == !!package, palette == !!palette) %$%
length[[1L]]
filter(package == !!package, palette == !!palette) %>%
purrr::pluck("length")

are_enough_colors_available <- palette_length > min_length

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-ggdotplotstats.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# creating a new dataset
morley_new <- dplyr::mutate(
morley,
Expt = dplyr::case_when(
Expand Down

0 comments on commit 65cba17

Please sign in to comment.