keller-mark / anyhtmlwidget

Bringing core concepts from anywidget to R
https://keller-mark.github.io/anyhtmlwidget/
Other
13 stars 1 forks source link

Should API use kwargs or a `values` list argument? #10

Closed keller-mark closed 5 months ago

keller-mark commented 5 months ago

The kwargs are nice but mean that users cannot choose value names that clash with existing (or future) named args like esm, width, height, and mode.

widget <- AnyHtmlWidget$new(esm = esm, mode = "static", count = 1)
# vs
widget <- AnyHtmlWidget$new(esm = esm, mode = "static", values = list(count = 1))