Skip to content

Commit

Permalink
lil updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Jan 30, 2024
1 parent 38314ce commit 6d5bcbb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/standalone-checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# ## Changelog
# nocov start

# styler: off

#' Check Class
#'
Expand Down Expand Up @@ -178,3 +178,4 @@ check_binary <- function(x, arg_name = rlang::caller_arg(x), call = parent.frame
}

# nocov end
# styler: on
2 changes: 2 additions & 0 deletions R/standalone-forcats.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# ## Changelog
#
# nocov start
# styler: off

fct_infreq <- function(f, ordered = NA) {
# reorder by frequency
Expand All @@ -32,3 +33,4 @@ fct_inorder <- function(f, ordered = NA) {
}

# nocov end
# styler: on
10 changes: 7 additions & 3 deletions R/standalone-stringr.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# ## Changelog
#
# nocov start
# styler: off

str_trim <- function(string, side = c("both", "left", "right")) {
side <- rlang::arg_match(side)
Expand All @@ -36,9 +37,12 @@ str_extract <- function(string, pattern) {
)
}

# nocov end


str_detect <- function(string, pattern) {
grepl(pattern = pattern, x = string)
}

# nocov end
# styler: on



0 comments on commit 6d5bcbb

Please sign in to comment.