Skip to contents

Read-Only AST Server

Usage

ast_readonly_server(
  id,
  ast,
  selected_nodes = shiny::reactive(integer(0)),
  enable_preview = TRUE,
  id_prefix = NULL
)

Arguments

id

Character. Module namespace ID

ast

Reactive. The parsed AST object

selected_nodes

Reactive. Optional selected nodes to highlight (default: none)

enable_preview

Logical. Whether to enable preview functionality (default: TRUE)

id_prefix

Character. Optional prefix for button IDs to avoid collisions