wrap_blocks.Rdwrap block class objects in a list
wrap_blocks(...)
| ... | block elements |
|---|
list of blocks elements
Other layout:
actions_block(),
as.blocks(),
context_block(),
divider_block(),
file_block(),
image_block(),
input_block(),
section_block()
wrap_blocks( image_element( url = 'https://image.freepik.com/free-photo/red-drawing-pin_1156-445.jpg', alt_text = 'images' ), block_text( text = 'Location: **Dogpatch**' ) )#> [ #> { #> "type": "image", #> "image_url": "https://image.freepik.com/free-photo/red-drawing-pin_1156-445.jpg", #> "alt_text": "images" #> }, #> { #> "type": "mrkdwn", #> "text": "Location: **Dogpatch**" #> } #> ]