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

https://github.com/VincentGuyader/memory

Simple shiny app to test memory charge
https://github.com/VincentGuyader/memory

Last synced: 2 months ago
JSON representation

Simple shiny app to test memory charge

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval=FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# memory

The goal of memory is to provide a simple (useless) shiny app to _crash_ test memroy usage in production (shinyproxy, kubernetes,...)

## Installation

``` r
#install.packages("remotes")
remotes::install_github("vincentguyader/memory")
```

## Example

```{r example,eval=FALSE}
memory::run_app()
```

![](readme-figs/demo.png)

## usage from docker

- from docker hub

```{bash}
docker run -p 80:3838 thinkr/memory
```

- (re)build localy

```{r}
golem::add_dockerfile_with_renv_shinyproxy(source_folder = "deploy")
```

```{bash}
cd deploy
docker build -f Dockerfile_base --progress=plain -t memory_base .
docker build -f Dockerfile --progress=plain -t memory:latest .
docker run -p 3838:3838 memory:latest
# then go to 127.0.0.1:3838
```

## deploy to posit Connect

```{r}
rsconnect::deployApp(appFiles = "app.R")
```