Skip to contents

Enumerates every R file reachable from the app root (the conventional starting set plus transitive source() and box::use() follow), parses each retaining srcrefs, and returns the parsed bundle as an svt_parsed object.

Usage

svt_parse(app_path)

Arguments

app_path

Path to a Shiny app root or a .zip archive.

Value

An svt_parsed object — a list with app_path, files (relative paths), and asts (named list, parse() results keyed by relpath).

Details

app_path may be a directory or a .zip archive; archives are extracted to a session-scoped tempdir and the extracted root is used for all subsequent steps.