The r2resize package is available on CRAN and can be installed as shown below
install.packages(r2resize)
Attach library
library(r2resize)
The r2resize can be used within the R Markdown or Quarto document using an R chunk as shown below
r2resize::add.resizer()
or by using the available options. An example of how the available options can be used is show below
::add.resizer(
r2resizetheme.color = "black",
position = "top",
font.size = "12px",
font.color = "darkblue",
tables = TRUE,
images = TRUE,
line.color = "orange",
line.width = 150,
default.image.width="40%"
)
library(r2symbols)
::emphasisCard("text1",symbol("ram","hippopotamus","alpha","beta",font.size=50), bg.color = "#f1f1f1") r2resize