splash_add_lua: Add raw lua code into DSL call chain

Description Usage Arguments Details See Also

View source: R/dsl.r

Description

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.

Usage

1
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:

1
2
3

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

See Also

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()


hrbrmstr/splashr documentation built on Feb. 23, 2020, 2:13 p.m.