UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

19 lines (18 loc) 1.18 kB
import { FlowrAnalyzerPackageVersionsPlugin } from './flowr-analyzer-package-versions-plugin'; import { SemVer } from 'semver'; import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context'; export declare const sessionInfoLog: import("tslog").Logger<import("tslog").ILogObj>; /** * Reads package (and R) versions from a pasted `sessionInfo()` output block within a source file (typically inside * a comment). This is how R users record a reproducible environment, so when present it pins exact versions, just * like a lockfile. Detection is conservative: we only act once we see the `R version` line and/or one of * `sessionInfo()`'s package-listing headers, and additionally require at least one `pkg_version` token so unrelated * text is not misread. */ export declare class FlowrAnalyzerPackageVersionsSessionInfoPlugin extends FlowrAnalyzerPackageVersionsPlugin { readonly name = "flowr-analyzer-package-versions-session-info-plugin"; readonly description = "Extracts package and R versions from a pasted sessionInfo() output block."; readonly version: SemVer; process(ctx: FlowrAnalyzerContext): void; private processContent; }