mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 09:11:51 +02:00
(v1.7.1.9060) bugfix set_ab_names
This commit is contained in:
@ -57,7 +57,7 @@ pm_left_join <- function(x, y, by = NULL, suffix = c(".x", ".y")) {
|
||||
# adapted from https://github.com/nathaneastwood/poorman/blob/52eb6947e0b4430cd588976ed8820013eddf955f/R/where.R#L17-L32
|
||||
where <- function(fn) {
|
||||
if (!is.function(fn)) {
|
||||
stop(deparse_var(fn), " is not a valid predicate function.")
|
||||
stop(pm_deparse_var(fn), " is not a valid predicate function.")
|
||||
}
|
||||
preds <- unlist(lapply(
|
||||
pm_select_env$.data,
|
||||
|
@ -354,7 +354,7 @@ set_ab_names <- function(data, ..., property = "name", language = get_locale(),
|
||||
}
|
||||
|
||||
if (is.data.frame(data)) {
|
||||
if (length(list(...)) > 0) {
|
||||
if (tryCatch(length(list(...)) > 0, error = function(e) TRUE)) {
|
||||
df <- pm_select(data, ...)
|
||||
} else {
|
||||
df <- data
|
||||
|
Reference in New Issue
Block a user