Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #101 - throw an error if the x argument supplied to vis_dat is not a data.frame #102

Merged
merged 5 commits into from
Nov 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/vis-dat.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ vis_dat <- function(x,

# throw error if x not data.frame
if(!(inherits(x, "data.frame"))){
stop("Oops - vis_dat requires x to be an object of class data.frame but the object you've provided me with is of class(es): ",
stop("vis_dat requires a data.frame but the object I see has class/es: ",
paste(class(x), collapse = ", "))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the option for stop, call. = FALSE, as is done in the naniar function :)

}

Expand Down