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
- Host: GitHub
- URL: https://github.com/VincentGuyader/memory
- Owner: VincentGuyader
- License: other
- Created: 2019-02-19T20:43:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-11T16:59:18.000Z (9 months ago)
- Last Synced: 2025-04-08T17:22:37.557Z (6 months ago)
- Language: R
- Size: 63.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - VincentGuyader/memory - Simple shiny app to test memory charge (R)
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%"
)
```
# memoryThe 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()
```
## 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")
```