img_intensify: Viewing images on full screen

Description Usage Arguments Value Examples

View source: R/img_intensify.R

Description

Viewing images on full screen

Usage

1
img_intensify(target = "img")

Arguments

target

By default, the function intensifies all the images (<img> tag) however the user can target specific classes

Value

images that when clicked can be viewed on full screen no matter their initial size

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
if (interactive()) {


ui <- fluidPage(

h1("Click on the image to view it in full screen"),

img(src = "https://www.r-project.org/logo/Rlogo.png",

width = "200px", height = "200px"),

img_intensify()

)

server <- function(input, output) {

}

shinyApp(ui = ui, server = server)

}

feddelegrand7/rintimg documentation built on Dec. 15, 2020, 7:30 p.m.