# Attach the default jQuery version (3.5.1)
r2resize::add.JQuery()
# Attach a specific jQuery version (e.g., 3.7.0)
r2resize::add.JQuery("3.7.0")
# This function is often used implicitly by other r2resize components,
# but can be manually added to ensure jQuery is present in a custom HTML context.
# Example in a simple R Markdown chunk (won't render fully without proper setup)
if (FALSE) {
r2resize::add.JQuery()
htmltools::div("This text requires jQuery for some interactive features.")
}
Run the code above in your browser using DataLab