Package 'devoid'

Title: A Graphic Device that Does Nothing
Description: Provides a non-drawing graphic device for benchmarking purpose. In order to properly benchmark graphic drawing code it is necessary to factor out the device implementation itself so that results are not related to the specific graphics device used during benchmarking. The 'devoid' package implements a graphic device that accepts all the required calls from R's graphic engine but performs no action. Apart from benchmarking it is unlikely that this device has any practical use.
Authors: Thomas Lin Pedersen [aut, cre], Posit, PBC [cph]
Maintainer: Thomas Lin Pedersen <[email protected]>
License: MIT + file LICENSE
Version: 0.1.2.9000
Built: 2024-11-01 11:23:57 UTC
Source: https://github.com/r-lib/devoid

Help Index


Open a void device

Description

This function opens a graphic device that accepts inputs, but do not perform any action. As such it is useful for benchmarking graphic code as it removes the device implementation from the implementation.

Usage

void_dev()

Examples

void_dev()
# Any plotting instructions will now have no effect
plot(1:10000, 1:10000)
dev.off()