render_image: Method to embed an image file in a component

View source: R/components.R

render_imageR Documentation

Method to embed an image file in a component

Description

Method to embed an image file in a component

Usage

render_image(
  image,
  image_alt_text = NULL,
  title = NULL,
  raw = FALSE,
  width = "100%",
  height = "auto",
  in_component = TRUE
)

Arguments

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

Value

A character string containing the evaluated component


i2dash documentation built on Sept. 8, 2023, 6:04 p.m.