Display local image files in Viewer, or otherwise support `getOption('viewer')` for images
In RStudio we can do:
library(magick)
frink <- image_read("https://jeroen.github.io/images/frink.png")
print(frink)
But this does not work positron. I think the problem is that the getOption('viewer') does not work with images, only html?
It actually only works with HTTP urls right now, not local HTML files at all.
I'll transfer this to our regular repo for us to find how to best support images. We do have a nice way to see an image in the main area (where the source editor is):
We'll need to find out how to navigate existing packages that use getOption('viewer') for images and whether people really want to see these images at the same time as their source editor vs. in this area.
Related to #2559
Should be resolved with #4151:
Verified Fixed
Positron Version(s) : 2024.07.0-107
OS Version : OSX
Test scenario(s)
library(magick) frink <- image_read("https://jeroen.github.io/images/frink.png") print(frink)
Link(s) to TestRail test cases run or created: N/A