-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
66 lines (45 loc) · 1.08 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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")
```