include_image: Insert an image from a url

Description Usage Arguments Value

View source: R/fun.R

Description

This function is supposed to be used in R code chunks or inline R code expressions.

Usage

1
include_image(img_url, img_dir = "images")

Arguments

img_url

The url of the image

img_dir

The path of the local image directory

Value

The same as the knitr::include_graphics() function


bookdownplus documentation built on March 26, 2020, 7:11 p.m.