Recording requires a device whose display list is enabled (see
dev.control); without one there is nothing to
record and the returned plot will replay blank. Interactive devices---the
plot pane of an IDE, say---typically enable it by default, whereas
file-based devices (png, pdf, svg, ...) do not. tinyplot() enables
it for any device that it opens itself via the file argument, and warns
if the current device is not recording.
Printing a recorded plot---either explicitly with print(), or simply by
evaluating it at the console---is what restores the initializing call, so
that a subsequent tinyplot_add() layers onto it. Calling
replayPlot() on the object instead redraws it
just as it would any other recording, but leaves the current plot context
untouched; layering after that route targets whichever plot was drawn last.
This class is experimental, as is the record argument that produces it.