remoter (version 0.4-0)

rDevices: Local Graphic Devices

Description

Functions for controlling graphic device locally when the client of remote R is on. All these functions are evaluated in local R from within the remote R prompt.

dev.curc() locally evals grDevices::dev.cur().

dev.listc() locally evals grDevices::dev.list().

dev.nextc() locally evals grDevices::dev.next().

dev.prevc() locally evals grDevices::dev.prev().

dev.offc() locally evals grDevices::dev.off().

dev.setc() locally evals grDevices::dev.set().

dev.newc() locally eval grDevices::dev.new().

dev.sizec() locally evals grDevices::dev.size().

Usage

dev.curc()

dev.listc()

dev.nextc(which = grDevices::dev.cur())

dev.prevc(which = grDevices::dev.cur())

dev.offc(which = grDevices::dev.cur())

dev.setc(which = grDevices::dev.cur())

dev.newc(..., noRstudioGD = FALSE)

dev.sizec(units = c("in", "cm", "px"))

Arguments

which

An integer specifying a device number as in grDevices::dev.off()

...

arguments to be passed to the device selected as in grDevices::dev.new()

noRstudioGD

as in grDevices::dev.new()

units

as in grDevices::dev.size()

Details

Local Graphic Device Controlling Functions

See Also

rpng()

Examples

Run this code
# NOT RUN {
### Prompts are listed to clarify when something is eval'd locally vs
### remotely
> library(remoter, quietly = TRUE)
> client()

remoter> rpng.new(plot(1:5))
remoter> dev.newc(width = 6, height = 4)
remoter> a <- function() plot(iris$Sepal.Length, iris$Petal.Length)
remoter> rpng.new(a, width = 6 * 72, height = 4 * 72)

remoter> dev.curc()
remoter> dev.listc()
remoter> dev.offc()

remoter> q()
>
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab