Set of functions to provide integration with the RStudio IDE
spark_ide_connection_open(con, env, connect_call)spark_ide_connection_closed(con)
spark_ide_connection_updated(con, hint)
spark_ide_connection_actions(con)
spark_ide_objects(con, catalog, schema, name, type)
spark_ide_columns(
con,
table = NULL,
view = NULL,
catalog = NULL,
schema = NULL
)
spark_ide_preview(
con,
rowLimit,
table = NULL,
view = NULL,
catalog = NULL,
schema = NULL
)
Valid Spark connection
R environment of the interactive R session
R code that can be used to re-connect to the Spark connection
Name of the Spark connection that the RStudio IDE can use as reference.
Name of the top level of the requested table or view
Name of the second most top level of the requested level or view
The new of the view or table being requested
Type of the object being requested, 'view' or 'table'
Name of the requested table
Name of the requested view
The number of rows to show in the 'Preview' pane of the RStudio IDE
These function are meant for downstream packages, that provide additional backends to `sparklyr`, to override the opening, closing, update, and preview functionality. The arguments are driven by what the RStudio IDE API expects them to be, so this is the reason why some use `type` to designated views or tables, and others have one argument for `table`, and another for `view`.