The r2resize package is available on CRAN and can be installed as shown below
install.packages(r2resize)
Attach library
library(r2resize)
::splitCard(
r2resize"Sample r2symbols 1",
"Sample nextGen 1",
bg.right.color = "white",
bg.left.color = "lightgray",
position = "vertical"
)
::sizeableCard(shiny::h2("Sizeable text"), "
r2resizeLobortis mattis aliquam faucibus purus in massa tempor. Quis enim lobortis scelerisque fermentum dui faucibus in ornare quam. At lectus urna duis convallis. Arcu non odio euismod lacinia at quis risus. Tincidunt ornare massa eget egestas purus viverra accumsan in. Cras adipiscing enim eu turpis egestas pretium aenean.")
::windowCard("
r2resizeDrag to the edge of the window to expand. Lobortis mattis aliquam faucibus purus in massa tempor. Quis enim lobortis scelerisque fermentum dui faucibus in ornare quam. At lectus urna duis convallis. Arcu non odio euismod lacinia at quis risus. Tincidunt ornare massa eget egestas purus viverra accumsan in. Cras adipiscing enim eu turpis egestas pretium aenean.",
title = "Draggable, Resizable, Exapandable",
width = "500px",
bg.color = "white",
border.color = "brown",
header.text.color = "white",
body.text.color = "black")
library(r2symbols)
::emphasisCard("text1",symbol("heart","ram","hippopotamus","alpha","beta",font.size=60), bg.color = "lightblue") r2resize