-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.qmd
88 lines (66 loc) · 1.53 KB
/
logging.qmd
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Logging {#sec-debug-logging}
<!--
https://shiny.posit.co/r/articles/improve/debugging/
https://debruine.github.io/shinyintro/debugging.html
-->
```{r}
#| label: _common
#| eval: true
#| echo: false
#| include: false
source("_common.R")
library(lobstr)
```
```{r}
#| label: co_box_tldr
#| echo: false
#| results: asis
#| eval: true
co_box(
color = "b",
look = "default", hsize = "1.10", size = "1.05",
header = "TLDR   Logging your Shiny app",
fold = TRUE,
contents = "
<br>
Debugging plays a crucial role in ensuring that our app works as expected *and* integrates seamlessly into the R package structure.
"
)
```
Logging...
:::: {.callout-tip collapse='true' appearance='default'}
## [Accessing applications]{style='font-weight: bold; font-size: 1.15em;'}
::: {style='font-size: 0.95em; color: #282b2d;'}
I've created the [`shinypak` R package](https://mjfrigaard.github.io/shinypak/) In an effort to make each section accessible and easy to follow:
Install `shinypak` using `pak` (or `remotes`):
```{r}
#| code-fold: false
#| message: false
#| warning: false
#| eval: false
# install.packages('pak')
pak::pak('mjfrigaard/shinypak')
```
Review the chapters in each section:
```{r}
#| code-fold: false
#| message: false
#| warning: false
#| collapse: true
library(shinypak)
list_apps(regex = 'debug')
```
Launch the app:
```{r}
#| code-fold: false
#| eval: false
launch(app = "23.1_debug-error")
```
Download the app:
```{r}
#| code-fold: false
#| eval: false
get_app(app = "23.1_debug-error")
```
:::
::::