powered by
Please see the manual page for grDevices::dev.off(). Package rasterpdf overrides the function in order to provide functionality of raster_pdf(), but internally calls grDevices::dev.off().
grDevices::dev.off()
rasterpdf
raster_pdf()
dev.off(which = grDevices::dev.cur())
An integer that specifies the device number. Default is the current device.
# NOT RUN { raster_pdf(tempfile(fileext = ".pdf")) plot(iris) dev.off() # }
Run the code above in your browser using DataLab