Create a List with a Serial Comma
A character vector to join
Conjunction to use for final entry
Quote the entries of ...
; choose from:
“single
”: single quotes
“double
”: double quotes
“none
”: no extra quoting
Use fancy quotes; defaults to the value of the
“useFancyQuotes
” option (currently set to
TRUE
)
...
arranged into an English list with a serial comma
when needed
oxford('cell')
#> [1] "‘cell’"
oxford('cell', 'ident')
#> [1] "‘cell’ or ‘ident’"
oxford('cell', 'ident', 'gene')
#> [1] "‘cell’, ‘ident’, or ‘gene’"