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

Nothing to plot #180

Closed
shouyongpeng opened this issue Mar 1, 2024 · 3 comments
Closed

Nothing to plot #180

shouyongpeng opened this issue Mar 1, 2024 · 3 comments
Labels
N/A: nothing to do here Nothing to do here

Comments

@shouyongpeng
Copy link

Thanks for this great package!
Somehow "Error" came out when there is not discrete feature to plot. I would be great to add a line for this condition to skip the plot_bar.

Error:
! Note: All discrete features ignored! Nothing to plot!
Backtrace:

  1. base::do.call(plot_bar, c(list(data = data), bar_option))
  2. DataExplorer (local) <fn>(data = <dt[,4]>, ggtheme = theme_gray(), theme_config = <list>)
@boxuancui
Copy link
Owner

Hi @shouyongpeng, this error is there on purpose so that users don't end up with bugs that fail silently. If this is disrupting your workflow, please use tryCatch to bypass that. Thank you!

@boxuancui boxuancui added the N/A: nothing to do here Nothing to do here label Mar 1, 2024
@shouyongpeng
Copy link
Author

Hi @shouyongpeng, this error is there on purpose so that users don't end up with bugs that fail silently. If this is disrupting your workflow, please use tryCatch to bypass that. Thank you!

@boxuancui Thanks for the quick response!

@boxuancui
Copy link
Owner

You are welcome! Thanks for using DataExplorer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N/A: nothing to do here Nothing to do here
Projects
None yet
Development

No branches or pull requests

2 participants