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

Add info text to validate_colour() error message #33

Open
mccarthy-m-g opened this issue Jan 8, 2024 · 0 comments
Open

Add info text to validate_colour() error message #33

mccarthy-m-g opened this issue Jan 8, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mccarthy-m-g
Copy link
Owner

The info text would provide a hint on how to fix the error. Something like (as separate “i” bullets):

  • Is/Are your hexadecimal string/strings of the form “#rrggbb” or “#rrggbbaa”?
  • Is/Are your colour name/names included in grDevices::colors()?

It would be nice to make this context aware, so only the relevant hint shows up if invalid colours are specified in a single way, and both show up if there are both invalid hex strings and colour names.

@mccarthy-m-g mccarthy-m-g added the enhancement New feature or request label Jan 8, 2024
@mccarthy-m-g mccarthy-m-g modified the milestones: v0.2.0, v0.3.0 Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant