the pseudo variable every write to the state adds to, like #env
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
the file named name (data.csv for out/data.csv), so a read of a named file only sees writes that may hit it
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
whether name is one of these pseudo variables
the pseudo variable of the entry key of a state, like #env:PATH; setting the entry replaces it
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
the pseudo variable holding the option key; setting the option replaces it
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
marks name as bound to a text connection opened for writing, whose writes change it
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
Graphics parameters, options and other global state, tracked as global pseudo variables (
#...) so readers link to the calls that set them.