add_colored_box {mtb} | R Documentation |
Add a box with specified color in an R Markdown file.
Description
add_colored_box
returns a box component generated by htmltools
with specified color and styles.
Usage
add_colored_box(
type = "blue-default",
label = "",
info = "place details here using info option",
bgcolor = NULL,
width = 0.5,
halign = "c",
top = FALSE
)
Arguments
type |
One of:
|
label |
One of:
|
info |
A string including the main message of the box |
bgcolor |
NA or a length 3 vector with integer elements between 0 to 255 |
width |
NA or a number between 0.25 to 0.95 |
halign |
One of:
|
top |
One of:
|
Examples
add_colored_box( type='blue-default', info='the document include information regarding...')
[Package mtb version 0.1.8 Index]