I'm getting stuck translating the following example of https://r-pkgs.org/tests.html to rlang notation. I'm missing something about how to do something equivalent to eval(bquote
expect_floor_equal <- function(unit, time) {
unit <- rlang::enquo(unit)
time <- rlang::enquo(time)
rlang::eval_bare(expect_equal(floor_date(base, unit), as_time(time)))
}
## Error in unit[[1]] : object of type 'symbol' is not subsettable
## In addition: Warning message:
## In parse_period_unit(unit) :
## Unit argument longer than 1. Taking first element.y