Closed kbvernon closed 1 week ago
How do we know that this works? Is it possible to add a test? Otherwise I'd just merge.
yes, this function needs a test. i'll look into adding one tomorrow!
Pasting flags and values together into single character scalars is the wrong way to pass additional arguments to processx::run()
, so I opted to concatenate them into a character vector. This has the advantage of making purrr::discard()
unnecessary, as concatenating drops NULL values.
@kbvernon one last test! can you test the optional feature? The nifty codecov tool shows that it is missing a check :)
100% code cov? You're crazy for that.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 79.76%. Comparing base (
5478786
) to head (cb1c985
). Report is 1 commits behind head on main.
To address https://github.com/extendr/rextendr/issues/387, this PR adds a check for empty strings when running
purrr::discard()
on thecargo_add_opts
list.