Commit b0cd2107 authored by domingue's avatar domingue
Browse files

Bug fix: function were not imported causing CI to fail

parent 2e7568b9
Pipeline #1834 failed with stage
in 35 minutes and 47 seconds
Package: corescf
Title: Collection of Useful CSF Functions
Description: Collection of useful custom functions as part of the CSF workflows.
Version: 0.8.1.3000
Version: 0.8.1.4000
Authors@R: c(
person(given = "António",
family = "Domingues",
......
......@@ -447,8 +447,10 @@ replaceNA <- function(x, withValue) {
#'
#' @return a data.frame
#'
#' @export
#' @importFrom stringr str_detect fixed
#'
#' @export
#'
#' @examples
#' \dontrun{
#' x <- data.frame(a = letters, b = sample(letters))
......@@ -456,7 +458,7 @@ replaceNA <- function(x, withValue) {
#' }
search_df <- function(df, search_term) {
apply(df, 1, function(r) {
any(str_detect(as.character(r), fixed(search_term, ignore_case = T)))
any(str_detect(as.character(r), stringr::fixed(search_term, ignore_case = T)))
}) %>% subset(df, .)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment