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) ... end
If you need more flexibility, use the execute_lua() function.
Other splash_dsl_functions: splash_click,
splash_focus, splash_go,
splash_har_reset, splash_har,
splash_html, splash_png,
splash_press, splash_release,
splash_send_keys,
splash_send_text, splash_wait