spark_ide_connection_open: Set of functions to provide integration with the RStudio IDE

View source: R/spark_ide.R

spark_ide_connection_openR Documentation

Set of functions to provide integration with the RStudio IDE

Description

Set of functions to provide integration with the RStudio IDE

Usage

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
)

Arguments

con

Valid Spark connection

env

R environment of the interactive R session

connect_call

R code that can be used to re-connect to the Spark connection

hint

Name of the Spark connection that the RStudio IDE can use as reference.

catalog

Name of the top level of the requested table or view

schema

Name of the second most top level of the requested level or view

name

The new of the view or table being requested

type

Type of the object being requested, 'view' or 'table'

table

Name of the requested table

view

Name of the requested view

rowLimit

The number of rows to show in the 'Preview' pane of the RStudio IDE

Details

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'.


rstudio/sparklyr documentation built on April 30, 2024, 4:01 p.m.