File: table_latex_sidebar.R

package info (click to toggle)
r-cran-shinystan 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,172 kB
  • sloc: sh: 15; makefile: 7
file content (49 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (2)
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
sidebarPanel(
  width = 4,
  h4(strong(
    withMathJax("\\(\\LaTeX\\) table generator")
  )),
  selectInput(
    "tex_params",
    width = "100%",
    label = "Parameters (blank = all)",
    multiple = TRUE,
    choices = .param_list_with_groups,
    selected = if (length(.param_names) == 1) .param_names else .param_names[1:2]
  ),
  numericInput(
    "tex_digits",
    label = "Digits",
    value = 1,
    min = 0
  ),
  div(
    style = "padding: 1px;",
    checkboxGroupInput(
      "tex_columns",
      label = "Columns",
      choices = c(
        "Rhat",
        "Effective sample size" = "n_eff",
        "Posterior mean" = "mean",
        "Posterior standard deviation" = "sd",
        "Monte Carlo error" = "se_mean",
        "Quantile: 2.5%" = "2.5%",
        "Quantile: 25%" = "25%",
        "Quantile: 50%" = "50%",
        "Quantile: 75%" = "75%",
        "Quantile: 97.5%" = "97.5%"
      ),
      selected = c("Rhat", "n_eff", "mean", "sd", "2.5%", "50%", "97.5%")
    )
  ),
  textInput("tex_caption", label = "Caption"),
  checkboxGroupInput(
    "tex_pkgs",
    "Packages",
    choices = c("Booktabs", "Longtable"),
    selected = "Booktabs",
    inline = TRUE
  ),
  br()
)