powered by
format a map.
map_to_char(mp, sep = " ", assignment = "=", quote_fn = base::shQuote)
named vector or list
separator suffix, what to put after commas
assignment string
string quoting function
character formatted representation
# NOT RUN { cat(map_to_char(c('a' = 'b', 'c' = 'd'))) cat(map_to_char(c('a' = 'b', 'd', 'e' = 'f'))) # }
Run the code above in your browser using DataLab