Skip to content

Commit

Permalink
fix class handling to allow tibble
Browse files Browse the repository at this point in the history
  • Loading branch information
slager committed Feb 8, 2024
1 parent 48309aa commit 5cac7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/vertmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
vertmap <- function(input = NULL, mapdatabase = "world", region = ".",
geom = geom_point, jitter = NULL) {

if (!class(input) %in% c("list", "data.frame")) {
if (!inherits(input, c("list", "data.frame"))) {
stop("Input must be of class list or data.frame", call. = FALSE)
}

Expand Down
2 changes: 1 addition & 1 deletion R/yyy.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sw <- function(x) suppressWarnings(x)

vertsumwrapper <- function(input = NULL, verbose = TRUE){

if (!class(input) %in% c("list", "data.frame")) {
if (!inherits(input, c("list", "data.frame"))) {
stop("Input must be of class list or data.frame", call. = FALSE)
}
if (inherits(input, "list")) input <- input$data
Expand Down

0 comments on commit 5cac7bc

Please sign in to comment.