You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r-lib/cli#128 (for tidy developer day) can be resolved by adding this feature. What do you think about an oxford = TRUE for when there are >= 3 arguments? I'm happy to make the PR for that.
I thought I had an original idea to introduce an oxford = TRUE parameter to glue_collapse (presumably the successor to collapse). It looks like I wasn't the first.
If there was a oxford = TRUE parameter, AFAIK, it's gone/inaccessible now:
glue::glue_collapse(x=1:4, sep=", ", last=", and ")
#> 1, 2, 3, and 4
try(glue::glue_collapse(x=1:4, sep=", ", last=" and ", oxford=TRUE))
#> Error in glue::glue_collapse(x = 1:4, sep = ", ", last = " and ", oxford = TRUE) : #> unused argument (oxford = TRUE)
I am also not seeing a collapse in cli, FWIW, just successor functions.
So you can do:
The text was updated successfully, but these errors were encountered: