Is there a way print an existing PNG file to the device window, for example, let\'s say that you have saved a plot as PNG but you would like to preview it (for sanity) befor
Use ImageMagick library for all your image processing needs. It is brought to you as magick package to R. See the introductory vignette.
install.packages('magick') img <- magick::image_read('/path/image.png') plot(img) # or print(img)