rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

Update tests to accomodate new trailing comma error message from rlang #368

Closed cpsievert closed 1 year ago

cpsievert commented 1 year ago

Supersedes #367.

This change makes the tests pass with both the old rlang <1.0.7 error message:

> rlang::list2(,1)
! Argument 1 is empty

As well as the new rlang >= 1.0.7

> rlang::list2(,1)
! Argument 1 can't be empty.