knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = '30%' )
library(linguisticsdown)
path
png_url <- 'https://commonmark.org/images/markdown-mark.png' gif_url <- 'https://media.giphy.com/media/k3dcUPvxuNpK/giphy.gif'
include_graphics2(png_url)
alt_path
include_graphics2(gif_url)
alt_path
include_graphics2(gif_url, png_url)
path
include_graphics2('Darwin.jpg')
alt_path
include_graphics2('local.gif')
alt_path
include_graphics2('local.gif', 'local_gif_static.png')
r if (knitr::is_latex_output()) paste0('<!--')
r if (knitr::is_latex_output()) paste0('-->')
r if (knitr::is_html_output()) paste0('<!--')
See the corresponding HTML output of this vignette at http://bit.ly/include_graphics2.
r if (knitr::is_html_output()) paste0('-->')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.