benyamindsmith / starBliss

Create beautiful, print quality maps of the night sky in R
44 stars 2 forks source link

Use `match.arg` to avoid spelling errors with the argument specification #1

Closed benyamindsmith closed 1 year ago

benyamindsmith commented 1 year ago

E.g.


plot_starmap <- function(..., style = c('black', 'green')) {
  style <- match.arg(style)
  ...
}

When I get the time I will add it!

benyamindsmith commented 1 year ago

Done