display_<image> {IRdisplay} | R Documentation |
Either data
or file
must be passed.
display_png(data = NULL, file = NULL, width = NULL, height = NULL) display_jpeg(data = NULL, file = NULL, width = NULL, height = NULL) display_pdf(data = NULL, file = NULL, width = NULL, height = NULL) display_svg(data = NULL, file = NULL, width = NULL, height = NULL)
data |
|
file |
The path to a file or a |
width |
The width to display the image |
height |
The height to display the image |
## Not run: ## (Run inside of an IRkernel) display_png(file = 'image.png') display_svg(' <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 2 2"> <circle r="1"/> </svg> ') display_jpeg(file = url('https://dummyimage.com/600x400.jpg', 'wb'), width = 100) ## End(Not run)