luajr provides an interface toLuaJIT, a just-in-time compiler for theLua scripting language. It allows usersto run Lua code from R.
One of the advantages of using luajr is that LuaJIT runs Lua codewith very fast compilation times, fast execution times, and no need foran external toolchain, as the LuaJIT compiler is “built in” to the luajrpackage. This contrasts with e.g. Rcpp, which results in compiled codewith very fast execution times but slow compilation times and the needto invoke an external C++ compiler toolchain likegcc orclang.
You can install the released version of luajr fromCRAN with:
install.packages("luajr")You can install the development version of luajr fromGitHub with:
# install.packages("devtools")devtools::install_github("nicholasdavies/luajr")luajr is underearly development. As such, theinterface and behaviour of the package is subject to change.