useLuaVM: Add Lua scripting capability to the UI of a Shiny app

Description Usage Arguments Details

View source: R/useLuaVM.R

Description

This is a setup function that must be called from a Shiny app's UI to add the Lua implementation required for other shinyLua functions to work.

Usage

1
useLuaVM(rmd = FALSE)

Arguments

rmd

Logical; this must be set to TRUE if you are using shinyLua in an interactive R Markdown document rather than a Shiny app.

Details

This function adds 'fengari-web.js', a JavaScript port of the Lua VM, to an app's <head> tag and resource path along with other startup scripts and dependencies. Any scripts in the UI of type "application/lua" will run in this embedded Lua VM. shinyLua provides a convenience function, luaScript, for inserting Lua scripts into a Shiny UI.


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