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.
void_dev()
void_dev() # Any plotting instructions will now have no effect plot(1:10000, 1:10000) dev.off()
Run the code above in your browser using DataCamp Workspace