An open API service indexing awesome lists of open source software.

https://github.com/dreamRs/resizer

Simulate screen resolution for Shiny apps
https://github.com/dreamRs/resizer

Last synced: 5 months ago
JSON representation

Simulate screen resolution for Shiny apps

Awesome Lists containing this project

README

        

# resizer

> Simulate screen resolution for Shiny apps. When developing applications, the display may be different depending on the screen on which the application is displayed. This application allows you to simulate different resolutions to verify that the display is correct.

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build status](https://travis-ci.org/dreamRs/resizer.svg?branch=master)](https://travis-ci.org/dreamRs/resizer)
[![R-CMD-check](https://github.com/dreamRs/resizer/workflows/R-CMD-check/badge.svg)](https://github.com/dreamRs/resizer/actions)

:warning::warning::warning:

This is a POC to discuss with [@DivadNojnarg](https://github.com/DivadNojnarg), the goal is to see how we can merge this with [`shinyMobile::preview_mobile()`](https://rinterface.github.io/shinyMobile/reference/preview_mobile.html).

Online demo : https://dreamrs.github.io/resizer/

## Installation

You can install the development version from GitHub with:

```r
# install.packages("devtools")
devtools::install_github("dreamRs/resizer")
```

## Example

Launch your app (or the Hello demo from shiny) in a resizable iframe :

```r
library(resizer)
emulate_resolution(
system.file("examples", "01_hello", package = "shiny")
)
```

![](man/figures/demo.png)