powered by
This internal function facilitates creating a formatter that uses a specific device for rendering.
device_formatter(dev_open, dev_close = grDevices::dev.off())
A device formatter function
The function that opens the device
The function closing the device. Usually this would be grDevices::dev.off()
grDevices::dev.off()
# Create a png formatter using the default png device device_formatter(png)
Run the code above in your browser using DataLab