The splashr lua DSL (domain specific language) wrapper wraps what the package author believes to be the most common/useful lua functions. Users of the package may have need to insert some custom lua code within a DSL call chain they are building. You can insert any Splash lua code you like with this function call.

splash_add_lua(splash_obj, lua_code)



splashr object


length 1 character vector of raw lua code


The code is inserted at the position the splash_add_lua() is called in the chain which will be within the main "splash' function which is defined as:

function main(splash)

If you need more flexibility, use the execute_lua() function.

See also