rmdgallery::gallery_content( class = c("gallery-embed-script", params$class), gallery_config = params$gallery_config, htmltools::tags$script(src = params$content) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.