I want to put a local image instead of an HTML
image inside modalDialog
.
observeEvent(input$execute, {
showModal(modalDialog(
title = "Title",
HTML('<img src="http://www.google.nl/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">'),
easyClose = TRUE,
footer = NULL
))
})
actionButton(inputId = "execute", label = "Click")
Something like:
observeEvent(input$execute, {
showModal(modalDialog(
title = "Title",
"~/Documents/folder/images/image1.png",
easyClose = TRUE,
footer = NULL
))
})