Skip to content

Commit

Permalink
Vectorized remove_entry_from_sidebar()
Browse files Browse the repository at this point in the history
  • Loading branch information
sda030 committed Nov 26, 2024
1 parent 4cfe8b0 commit ff59253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: saros.base
Title: Base Tools for Semi-Automatic Reporting of Ordinary Surveys
Version: 0.2.6
Version: 0.2.7
Authors@R: c(
person(given = "Stephan",
family = "Daus",
Expand Down
3 changes: 2 additions & 1 deletion R/remove_entry_from_sidebar.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ remove_entry_from_sidebar <-
paste0(collapse = "\n") |>
stringi::stri_replace_all_regex(
pattern = pattern_to_remove,
replacement = ""
replacement = "",
vectorize = FALSE

Check warning on line 31 in R/remove_entry_from_sidebar.R

View check run for this annotation

Codecov / codecov/patch

R/remove_entry_from_sidebar.R#L30-L31

Added lines #L30 - L31 were not covered by tests
) |>
stringi::stri_split_lines() |>
unlist() |>
Expand Down

0 comments on commit ff59253

Please sign in to comment.