e61-Institute / theme61

Create graphs in the e61 Institute style
https://e61-institute.github.io/theme61/
MIT License
5 stars 0 forks source link

Group together ad-hoc messages telling users they haven't been using the functions into a nicely formatted feedback console message after the graph is saved using `cli::`. #63

Closed aaronw22 closed 10 months ago

aaronw22 commented 1 year ago

Currently various messages are printed if users don't do things like use the scale functions correctly, or don't specify a height when saving graphs. We could consolidate the messages into a single large message block that is appropriately highlighted, a mock-up below:

Recommended changes: please include the following in your plot code:
  ⚠️ Add 'theme_e61()' to ensure the e61 theme is applied.  
  ⚠️ Add 'scale_x_continuous()' and 'scale_y_continuous()' to ensure the graph axes render correctly.
  ⚠️ Add 'scale_colour_e61()' or 'scale_fill_e61() to ensure the e61 colour palette is used.

Graph information:
  ℹ️ save_e61() has automatically guessed the height, please open the graph file to check if the height is appropriate and set the height explictly using the 'height' argument.
  ℹ️ The graph height and width have been set to X.X and Y.Y.