r-lib / svglite

A lightweight svg graphics device for R
https://svglite.r-lib.org
180 stars 39 forks source link

Perform rlang style argument checking #172

Closed hadley closed 1 month ago

hadley commented 7 months ago

From https://github.com/r-lib/pkgdown/issues/2433, we get this error:

Error:
! Expected string vector of length 1

Which is obviously hard to debug because we don't know what function it is, what argument it is, or what type of value is expected.