Skip to content

Commit

Permalink
enhanced error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-foster committed Mar 13, 2018
1 parent 01b9f56 commit cbca0da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/taxmap--parsers.R
Expand Up @@ -208,7 +208,8 @@ parse_tax_data <- function(tax_data, datasets = list(), class_cols = 1,
na_indexes <- which(vapply(parsed_tax, function(x) any(is.na(x)), logical(1)))
if (length(na_indexes) > 0) {
warning(call. = FALSE,
'The following input indexes have `NA` in their classifications:\n',
'The following ', length(na_indexes),' of ', length(parsed_tax),
' input indexes have `NA` in their classifications:\n',
limited_print(na_indexes, prefix = " ", type = "silent"))
}

Expand Down
Binary file modified data/ex_taxmap.rda
Binary file not shown.
3 changes: 2 additions & 1 deletion man-roxygen/taxmapegs.R
Expand Up @@ -102,7 +102,8 @@
#' unidentified_animal <- hierarchy(mammalia, unidentified)
#' unidentified_plant <- hierarchy(plantae, unidentified)
#'
#' info <- data.frame(name = c("tiger", "cat", "mole", "human", "tomato", "potato"),
#' info <- data.frame(stringsAsFactors = FALSE,
#' name = c("tiger", "cat", "mole", "human", "tomato", "potato"),
#' n_legs = c(4, 4, 4, 2, 0, 0),
#' dangerous = c(TRUE, FALSE, FALSE, TRUE, FALSE, FALSE))
#'
Expand Down
3 changes: 2 additions & 1 deletion man/taxmap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbca0da

Please sign in to comment.