mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 09:10:51 +01:00
(v1.2.0.9011) mo_domain(), improved error handling
This commit is contained in:
1 parent
e88d7853f5
commit
93a158aebd
49 files changed
+523
-590
No files matched your search
+1
-3
@@ -62,9 +62,7 @@ guess_ab_col <- function(x = NULL, search_string = NULL, verbose = FALSE) {
|
||||
if (is.null(x) & is.null(search_string)) {
|
||||
return(as.name("guess_ab_col"))
|
||||
}
|
||||
if (!is.data.frame(x)) {
|
||||
stop("`x` must be a data.frame")
|
||||
}
|
||||
stop_ifnot(is.data.frame(x), "`x` must be a data.frame")
|
||||
|
||||
if (length(search_string) > 1) {
|
||||
warning("argument 'search_string' has length > 1 and only the first element will be used")
|
||||
|
||||
Reference in new issue
Block a user