From 388512deee369648456061b7fb945e1971b13baf Mon Sep 17 00:00:00 2001 From: John Elizarraras <13990267+iblacksand@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:44:29 -0800 Subject: [PATCH] Update idMappingMetabolites.R to address warning --- R/idMappingMetabolites.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/idMappingMetabolites.R b/R/idMappingMetabolites.R index 31bd037..134f902 100644 --- a/R/idMappingMetabolites.R +++ b/R/idMappingMetabolites.R @@ -163,14 +163,14 @@ add_prefix <- function(x, sourceIdType) { uppers <- c("LIPIDMAPS", "CAS") if (toupper(sourceIdType) %in% uppers) { return(unlist(sapply(x, function(y) { - if (grepl(":", y, FIXED = TRUE)) { + if (grepl(":", y)) { return(y) } return(paste0(toupper(sourceIdType), ":", toupper(y))) }))) } else { return(unlist(sapply(x, function(y) { - if (grepl(":", y, fixed = TRUE) && sourceIdType != "swisslipids") { + if (grepl(":", y) && sourceIdType != "swisslipids") { return(y) } return(paste0(sourceIdType, ":", y))