render_image | R Documentation |
Method to embed an image file in a component
render_image(
image,
image_alt_text = NULL,
title = NULL,
raw = FALSE,
width = "100%",
height = "auto",
in_component = TRUE
)
image |
The path to the image file. |
image_alt_text |
The alt text of the image. |
title |
The components title. |
raw |
Whether or not to emit solely the markdown image code. |
width |
Width defined with CSS in the HTML img-tag. |
height |
Height defined with CSS in the HTML img-tag. |
in_component |
Whether the image belongs to a component or the sidebar |
A character string containing the evaluated component
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.