Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by using evidence-based methods, as described in https://doi.org/10.18637/jss.v104.i03.
When a drug name ends with "-P" or "-p", AMR fails. Following are some reproduction sequences:
ab_name("x-p")
[1] "(x-p)"
Warning message:
These values could not be coerced to a valid antimicrobial ID: "x-p".
ab_name("xy-p")
Error in ifelse(grepl("Invalid regexp", e$message), return(base::grepl(pattern = pattern, :
invalid regular expression '^/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ab_name("xyx-p")
Error in ifelse(grepl("Invalid regexp", e$message), return(base::grepl(pattern = pattern, :
invalid regular expression '^/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ab_name("xyxa-p")
Error: C stack usage 7969188 is too close to the limit
Opened on 26 May 2020 by Asoke Talukder on GitLab:
When a drug name ends with "-P" or "-p", AMR fails. Following are some reproduction sequences:
ab_name("x-p") [1] "(x-p)" Warning message: These values could not be coerced to a valid antimicrobial ID: "x-p". ab_name("xy-p") Error in ifelse(grepl("Invalid regexp", e$message), return(base::grepl(pattern = pattern, : invalid regular expression '^///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ab_name("xyx-p") Error in ifelse(grepl("Invalid regexp", e$message), return(base::grepl(pattern = pattern, : invalid regular expression '^///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ab_name("xyxa-p") Error: C stack usage 7969188 is too close to the limit