more unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-10-09 15:41:44 +02:00
1 parent 95c9fdc552
commit 67521394f6
4 files changed
+23 -13

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ exec_as.mo <- function(x, Becker = FALSE, Lancefield = FALSE, allow_uncertain =
# defined df to check for
if (!is.null(reference_df)) {
if (!is.data.frame(reference_df) | NCOL(reference_df) < 2) {
stop('`reference_df` must be a data.frame with at least two columns.')
stop('`reference_df` must be a data.frame with at least two columns.', call. = FALSE)
}
# remove factors, just keep characters
suppressWarnings(