Description Usage Arguments Details
Generates the html to embed a client-side Lua script in a Shiny UI or an R Markdown webpage. Lua code can be passed in with a string or with a separate Lua file in the app's www directory
1 |
lua |
Character string containing lua code. Do not set a value for this argument if using Lua from a separate source file. |
src |
Relative path to a Lua source file in the Shiny app's 'www' directory. |
useLuaVM
must be run in the Shiny app's UI for this function to work.
To add a Lua script to a shiny UI without this function, use tags$script()
with
type = "application/lua"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.