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)

Arguments

splash_obj

splashr object

lua_code

length 1 character vector of raw lua code

Details

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)
  ...
end

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

See also