powered by
Allow to preview a given app on different devices.
preview_mobile( appPath = NULL, url = NULL, port = 3838, device = c("iphoneX", "galaxyNote8", "iphone8", "iphone8+", "iphone5s", "iphone5c", "ipadMini", "iphone4s", "nexus5", "galaxyS5", "htcOne"), color = NULL, landscape = FALSE )
A shiny app containing an iframe surrounded by the device wrapper.
App to preview if local.
App to preview if online.
Default port. Ignored if url is provided.
Wrapper devices.
Wrapper color. Only with iphone8 (black, silver, gold), iphone8+ (black, silver, gold), iphone5s (black, silver, gold), iphone5c (white,red , yellow, green, blue), iphone4s (black, silver), ipadMini (black, silver) and galaxyS5 (black, white).
Whether to put the device wrapper in landscape mode. Default to FALSE.
if (interactive()) { library(shiny) library(shinyMobile) preview_mobile(appPath = "~/whatever", device = "galaxyNote8") }
Run the code above in your browser using DataLab