diff --git a/DESCRIPTION b/DESCRIPTION index 558e0511..20d4dcc8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 1.4.0.9013 +Version: 1.4.0.9014 Date: 2020-11-09 Title: Antimicrobial Resistance Analysis Authors@R: c( diff --git a/NEWS.md b/NEWS.md index e8f2d755..37ef27a5 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 1.4.0.9013 +# AMR 1.4.0.9014 ## Last updated: 9 November 2020 ### New diff --git a/R/mo.R b/R/mo.R index 08fb4a32..026846c3 100755 --- a/R/mo.R +++ b/R/mo.R @@ -1417,7 +1417,7 @@ exec_as.mo <- function(x, # - Becker et al. 2014, PMID 25278577 # - Becker et al. 2019, PMID 30872103 # - Becker et al. 2020, PMID 32056452 - post_Becker <- c("") # 2020-10-20 currently all are mentioned in above papers + post_Becker <- character(0) # 2020-10-20 currently all are mentioned in above papers if (any(x %in% MO_lookup[which(MO_lookup$species %in% post_Becker), property])) { warning("Becker ", font_italic("et al."), " (2014, 2019) does not contain these species named after their publication: ", diff --git a/R/mo_property.R b/R/mo_property.R index 7011fe06..ca1375de 100755 --- a/R/mo_property.R +++ b/R/mo_property.R @@ -140,9 +140,11 @@ #' language = "nl") # "Streptococcus groep A" #' #' # gram stains can be used as a filter -#' example_isolates %>% -#' filter(is_gram_positive()) -#' +#' if (require("dplyr")) { +#' example_isolates %>% +#' filter(is_gram_positive()) +#' } +#' #' # other -------------------------------------------------------------------- #' # get a list with the complete taxonomy (from kingdom to subspecies) #' mo_taxonomy("E. coli") diff --git a/R/sysdata.rda b/R/sysdata.rda index 00d266a6..736d43dc 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/docs/404.html b/docs/404.html index e697ec40..a151962d 100644 --- a/docs/404.html +++ b/docs/404.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 88ded881..e56c6da9 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 diff --git a/docs/articles/index.html b/docs/articles/index.html index 36ecae2e..ebcd72b0 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 diff --git a/docs/authors.html b/docs/authors.html index b01618be..df3c8717 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 diff --git a/docs/index.html b/docs/index.html index fb58e2cc..52a846e8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -43,7 +43,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 diff --git a/docs/news/index.html b/docs/news/index.html index ad9a4558..495519dc 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014 @@ -236,9 +236,9 @@ Source: NEWS.md -
-

-AMR 1.4.0.9013 Unreleased +
+

+AMR 1.4.0.9014 Unreleased

@@ -252,7 +252,7 @@

Functions is_gram_negative() and is_gram_positive() as wrappers around mo_gramstain(). They always return TRUE or FALSE (except when the input is NA or the MO code is UNKNOWN), thus always return FALSE for species outside the taxonomic kingdom of Bacteria. If you have the dplyr package installed, they can even determine the column with microorganisms themselves inside dplyr functions:

 example_isolates %>%
-  filter(is_gram_positive())
+  filter(is_gram_positive())
 #> NOTE: Using column `mo` as input for 'x'
  • Functions %not_like% and %not_like_case% as wrappers around %like% and %like_case%. The RStudio addin to insert the text " %like% " as provided in this package now iterates over all like variants. So if you have defined the keyboard shortcut Ctrl/Cmd + L to this addin, it will first insert %like% and by pressing it again it will be replaced with %not_like%, etc.

  • diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 4bc7fd58..353707ec 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -12,7 +12,7 @@ articles: datasets: datasets.html resistance_predict: resistance_predict.html welcome_to_AMR: welcome_to_AMR.html -last_built: 2020-11-09T12:06Z +last_built: 2020-11-09T14:18Z urls: reference: https://msberends.github.io/AMR//reference article: https://msberends.github.io/AMR//articles diff --git a/docs/reference/index.html b/docs/reference/index.html index aa5dedce..4e686847 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014

    diff --git a/docs/reference/mo_property.html b/docs/reference/mo_property.html index b5bac64e..73e65ea8 100644 --- a/docs/reference/mo_property.html +++ b/docs/reference/mo_property.html @@ -82,7 +82,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014
    @@ -479,8 +479,10 @@ This package contains the complete taxonomic tree of almost all microorganisms ( language = "nl") # "Streptococcus groep A" # gram stains can be used as a filter -example_isolates %>% - filter(is_gram_positive()) +if (require("dplyr")) { + example_isolates %>% + filter(is_gram_positive()) +} # other -------------------------------------------------------------------- # get a list with the complete taxonomy (from kingdom to subspecies) diff --git a/docs/survey.html b/docs/survey.html index 6f52806c..31c23b77 100644 --- a/docs/survey.html +++ b/docs/survey.html @@ -81,7 +81,7 @@ AMR (for R) - 1.4.0.9013 + 1.4.0.9014

    diff --git a/man/mo_property.Rd b/man/mo_property.Rd index dc4a2bee..c3b99514 100644 --- a/man/mo_property.Rd +++ b/man/mo_property.Rd @@ -259,8 +259,10 @@ mo_fullname("S. pyogenes", language = "nl") # "Streptococcus groep A" # gram stains can be used as a filter -example_isolates \%>\% - filter(is_gram_positive()) +if (require("dplyr")) { + example_isolates \%>\% + filter(is_gram_positive()) +} # other -------------------------------------------------------------------- # get a list with the complete taxonomy (from kingdom to subspecies)