luaScript: Add a Lua script to a Shiny UI or R Markdown Document

Description Usage Arguments Details

View source: R/luaScript.R

Description

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

Usage

1
luaScript(lua = NULL, src = NULL)

Arguments

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.

Details

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"


arkraieski/shinyLua documentation built on Feb. 8, 2021, 6:30 a.m.