Skip to contents

Include figures with title and notes using a data base

Usage

include_figure(figure, caption = NA, notes = NA, label = NA)

Arguments

figure

Path or URL of the figure.

caption

Figure caption (default = NA).

notes

Figure notes (default = NA).

label

Label for the notes (default = NA).

Value

Figure with caption and notes

Examples


library(inti)

figure <- "https://inkaverse.com/reference/figures/logo.png"

figure %>% include_figure(caption = "Title test."
                        , notes = "Note test.")
#> $caption
#> [1] "Title test. Note test."
#> 
#> $path
#> [1] "https://inkaverse.com/reference/figures/logo.png"
#> 
#> $figure
#> [1] "https://inkaverse.com/reference/figures/logo.png"
#> attr(,"class")
#> [1] "knit_image_paths" "knit_asis"       
#>