Skip to content

Commit

Permalink
fixed lintr errors
Browse files Browse the repository at this point in the history
  • Loading branch information
macataci committed Jul 30, 2024
1 parent 449b931 commit 6077f02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/documentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ look_up <- function(keywords, module = "all", logic = "or", language = "EN") {
ignore.case = TRUE
), ]
} else if (logic == "and") {
found <- ds[rowSums(vapply(
keywords, function(keyword) {
found <- ds[rowSums(vapply(keywords, function(keyword) {
grepl(keyword, ds[["descripcion"]], ignore.case = TRUE)
},
logical(nrow(ds))
Expand All @@ -183,8 +182,7 @@ look_up <- function(keywords, module = "all", logic = "or", language = "EN") {
ignore.case = TRUE
), ]
} else if (logic == "and") {
found <- ds[rowSums(vapply(
keywords, function(keyword) {
found <- ds[rowSums(vapply(keywords, function(keyword) {
grepl(keyword, ds[["description"]], ignore.case = TRUE)
},
logical(nrow(ds))
Expand Down

0 comments on commit 6077f02

Please sign in to comment.