include_image: Include a compressed image from filepath

View source: R/utils.R

include_imageR Documentation

Include a compressed image from filepath

Description

Include a compressed image from filepath

Usage

include_image(x, compression = TRUE, ratio_compression = 2, ...)

Arguments

x

Filepath

compression

Logical including whether we want to compress image (default) or not (in that case, standard knitr::include_graphics() is used)

ratio_compression

Compression ratio that should be applied

...

Arguments to pass to magick::image_scale()


InseeFrLab/utilitr-template documentation built on Oct. 21, 2022, 11:42 p.m.