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:
@ -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]
|
||||
|
@ -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")
|
||||
#'
|
||||
#'
|
||||
|
BIN
R/sysdata.rda
BIN
R/sysdata.rda
Binary file not shown.
Reference in New Issue
Block a user