@startz Thanks! But I wanted only one row.
Your idea still helps, though. For example, the below code does the job I wanted:
library(tidyverse)
# toy data
df <- tibble(v = c(-3:3))
df %>%
mutate(wanted = paste("'",v,"'",sep=""),
wanted = toString(wanted)) %>%
select(wanted) %>%
slice(1)
#> # A tibble: 1 x 1
#> wanted
#> <chr>
#> 1 '-3', '-2', '-1', '0', '1', '2', '3'
Created on 2022-01-16 by the reprex package (v2.0.0)