1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 22:41:52 +02:00

unit testing R4.3

This commit is contained in:
2023-05-26 20:37:00 +02:00
parent 766db4e21f
commit e1966503ee
10 changed files with 20 additions and 17 deletions

View File

@ -1009,7 +1009,7 @@ get_current_column <- function() {
# cur_column() doesn't always work (only allowed for certain conditions set by dplyr), but it's probably still possible:
frms <- lapply(sys.frames(), function(env) {
if (!is.null(env$i)) {
if (tryCatch(!is.null(env$i), error = function(e) FALSE)) {
if (!is.null(env$tibble_vars)) {
# for mutate_if()
env$tibble_vars[env$i]

View File

@ -71,7 +71,8 @@
#' @examples
#' \donttest{
#' # a combination of species is not formal taxonomy, so
#' # this will result in only "Enterobacter asburiae":
#' # this will result in "Enterobacter cloacae cloacae",
#' # since it resembles the input best:
#' mo_name("Enterobacter asburiae/cloacae")
#'
#' # now add a custom entry - it will be considered by as.mo() and
@ -109,7 +110,7 @@
#' mo_name("BACTEROIDES / PARABACTEROIDES")
#' mo_rank("BACTEROIDES / PARABACTEROIDES")
#'
#' # taxonomy still works, although a slashline genus was given as input:
#' # taxonomy still works, even though a slashline genus was given as input:
#' mo_family("Bacteroides/Parabacteroides")
#'
#'

Binary file not shown.