Skip to content

[Query] Files

github-actions[bot] edited this page Jul 21, 2026 · 1 revision

This document was generated from 'src/documentation/wiki-query.ts' on 2026-07-20, 17:48:26 UTC presenting an overview of flowR's query API (v2.12.3). Please do not edit this file/wiki page directly.

Files Query [overview]

Returns the files matching the given criteria.
This query is requested with the type files.
Run in the REPL: :query @files [role:<r1>,<r2>,...] <code | file://path>

This query returns the files that match the given criteria.

[ { "type": "files" } ]

(This can be shortened to @files when used with the REPL command :query).

Results (prettified and summarized):

Query: files (0ms)
   ╰ Found 0 files
All queries together required ≈0 ms (1ms accuracy, total 1 ms)

Show Detailed Results as Json

The analysis required 1.1 ms (including parsing and normalization and the query) within the generation environment.

In general, the JSON contains the Ids of the nodes in question as they are present in the normalized AST or the dataflow graph of flowR. Please consult the Interface wiki page for more information on how to get those.

{
  "files": {
    ".meta": {
      "timing": 0
    },
    "files": []
  },
  ".meta": {
    "timing": 0
  }
}
Original Code
Dataflow Graph of the R Code

The analysis required 0.7 ms (including parse and normalize, using the r-shell engine) within the generation environment. No signature database is mounted for these generated graphs, so library() calls attach no package exports; base-R names are still qualified via the generated base-package store (e.g. acf as stats::acf). We encountered no unknown side effects during the analysis.

flowchart LR
Loading
Implementation Details

Responsible for the execution of the Files Query query is executeFileQuery in ./src/queries/catalog/files-query/files-query-executor.ts.

Clone this wiki locally