Include figures with title and notes using a data base
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).
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"
#>