luajr-package: luajr: LuaJIT Scripting

luajr-packageR Documentation

luajr: LuaJIT Scripting

Description

An interface to 'LuaJIT' https://luajit.org, a just-in-time compiler for the 'Lua' scripting language https://www.lua.org. Allows users to run 'Lua' code from 'R'.

The R API

  • lua(): run Lua code

  • lua_func(): make a Lua function callable from R

  • lua_shell(): run an interactive Lua shell

  • lua_module(), lua_import(): load Lua modules

  • lua_open(): create a new Lua state

  • lua_reset(): reset the default Lua state

  • lua_parallel(): run Lua code in parallel

  • lua_mode(), lua_profile(): debugger, profiler, and JIT options

Further reading

For an introduction to 'luajr', see vignette("luajr")

Author(s)

Maintainer: Nicholas Davies nicholas.davies@lshtm.ac.uk (ORCID) (Author of the R package wrapper) [contributor, copyright holder]

Authors:

  • Mike Pall (Author of the embedded LuaJIT compiler) [copyright holder]

Other contributors:

  • Lua.org, PUC-Rio (Copyright holders over portions of Lua source code included in LuaJIT) [copyright holder]

  • Scott Lembcke, Howling Moon Software (Authors of the embedded debugger.lua debugger) [contributor, copyright holder]

See Also

Useful links:


luajr documentation built on Feb. 16, 2026, 1:06 a.m.