@eagleoutice/flowr - v2.17.16
    Preparing search index...
    AmbientStateName: {
        allOf(this: void, state: KeyedState): AmbientStateName;
        allOptions: "#options";
        anyFile: "#file:*";
        canvas: "#canvas";
        device: "#device";
        deviceOpenedHere: "#device:here";
        deviceOpener: "#device:opener";
        directories: "#dirs";
        errorMessage: "#error-message";
        file(this: void, name: string): AmbientStateName;
        files: "#files";
        finalizers: "#finalizers";
        graphics: "#graphics";
        is(this: void, name: Identifier | undefined): name is AmbientStateName;
        keyed(
            this: void,
            state: KeyedState,
            key: BrandedIdentifier,
        ): AmbientStateName;
        lastPlot: "#last-plot";
        libPaths: "#lib-paths";
        option(this: void, key: BrandedIdentifier): AmbientStateName;
        otherDeviceOpeners: "#device:opener:other";
        otherDevices: "#graphics:other";
        otherDevicesOpenedBy: "#device:other";
        otherPlots: "#plot:other";
        otherSinkOpeners: "#sink:opener:other";
        otherSinkOutputs: "#sink:output:other";
        otherSinks: "#sink:other";
        palette: "#palette";
        plot: "#plot";
        projectRoot: "#project-root";
        rng: "#rng";
        rngKind: "#rng:kind";
        rngVariable: ".Random.seed";
        sink: "#sink";
        sinkOpenedHere: "#sink:here";
        sinkOpener: "#sink:opener";
        sinkOutput: "#sink:output";
        textConnection(this: void, name: BrandedIdentifier): AmbientStateName;
        umask: "#umask";
        unknownOption: "#option:*";
        warnsAsErrors: "#warn-error";
        warnsAsErrorsSurely: "#warn-error:sure";
        workingDirectory: "#wd";
    }

    Graphics parameters, options and other global state, tracked as global pseudo variables (#...) so readers link to the calls that set them.

    Type Declaration

    • allOf: function
    • ReadonlyallOptions: "#options"

      every option write, for readers that may read any option (getOption(k) with an unknown k, library functions)

    • ReadonlyanyFile: "#file:*"

      written by a call writing a file we cannot name, which every call reading a file reads

    • Readonlycanvas: "#canvas"

      what is drawn on the active device, which every plot adds to; only written if semantics.ambient.drawingWritesDevice is set

    • Readonlydevice: "#device"

      the calls that opened the active device, set it up, and drew on it (a plot or par opens a device if none is open), and those of the other open devices, which closing a device links to

    • ReadonlydeviceOpenedHere: "#device:here"

      within a function, the call of its body that opened the active device, which only that body knows

    • ReadonlydeviceOpener: "#device:opener"

      the call that explicitly opened the active device (png("a.png")), and those of the other open devices, which names the file its close writes

    • Readonlydirectories: "#dirs"

      the directories on disk, which creating, moving, or removing one changes and every call accessing a file reads, as the path may lead through them

    • ReadonlyerrorMessage: "#error-message"

      the message of the last error, which try and tryCatch may have caught

    • file: function
    • Readonlyfiles: "#files"

      the files on disk, which every call writing a file adds to and every call reading a file we cannot name reads

    • Readonlyfinalizers: "#finalizers"

      the finalizers registered (reg.finalizer) and the removals that may release their objects, which gc() may run

    • Readonlygraphics: "#graphics"

      the graphics state (par, layout, ...) of the active device, which a new device starts afresh

    • is: function
    • keyed: function
    • ReadonlylastPlot: "#last-plot"

      the plot ggplot2's last_plot() returns, which building a ggplot (ggplot, +) replaces and ggsave reads; it belongs to no device

    • ReadonlylibPaths: "#lib-paths"

      where packages are installed and loaded from, which .libPaths(new) changes and every package load reads

    • option: function
    • ReadonlyotherDeviceOpeners: "#device:opener:other"
    • ReadonlyotherDevices: "#graphics:other"

      the graphics states of the other open devices, the active one returns to one of them once it closes

    • ReadonlyotherDevicesOpenedBy: "#device:other"
    • ReadonlyotherPlots: "#plot:other"
    • ReadonlyotherSinkOpeners: "#sink:opener:other"
    • ReadonlyotherSinkOutputs: "#sink:output:other"
    • ReadonlyotherSinks: "#sink:other"
    • Readonlypalette: "#palette"

      the color palette, which, other than the graphics parameters, all devices share

    • Readonlyplot: "#plot"

      the calls drawing the plot on the active device: a new plot (plot) replaces it, an addon (points) reads and adds to it

    • ReadonlyprojectRoot: "#project-root"

      the project root here::here() builds its paths from, found from the working directory unless here::i_am names it

    • Readonlyrng: "#rng"

      the state of the random number generator, which set.seed sets and every draw advances

    • ReadonlyrngKind: "#rng:kind"

      the kind of generator, which set.seed keeps unless it is given one

    • ReadonlyrngVariable: ".Random.seed"

      the global variable R keeps that state in, so assigning it sets AmbientStateName.rng as well

    • Readonlysink: "#sink"

      where console output goes, the call diverting it into a file or connection (sink(file)), and the diversions below it, which sink() returns to

    • ReadonlysinkOpenedHere: "#sink:here"

      within a function, the call of its body that diverted the output

    • ReadonlysinkOpener: "#sink:opener"

      the explicit diversion of the console output, and those below it

    • ReadonlysinkOutput: "#sink:output"

      the diversion of the output and every call printing into it, and those of the diversions below, which ending it links to

    • textConnection: function
    • Readonlyumask: "#umask"

      the file creation mask Sys.umask sets

    • ReadonlyunknownOption: "#option:*"

      written by an options(...) call whose keys we cannot name, like the common options(op) restore

    • ReadonlywarnsAsErrors: "#warn-error"

      written along with the option warn when it may turn warnings into errors (warn >= 2)

    • ReadonlywarnsAsErrorsSurely: "#warn-error:sure"

      written along with the option warn when it surely turns warnings into errors, every value it may get being 2 or more

    • ReadonlyworkingDirectory: "#wd"

      the working directory setwd changes, which every call accessing a file reads to resolve a relative path