Skip to content

Commit

Permalink
Update title, bump version, addresses #340
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed May 30, 2024
1 parent c5065de commit 6910ef5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
5 changes: 3 additions & 2 deletions _freeze/html/shiny/execute-results/html.json

Large diffs are not rendered by default.

Binary file modified html/images/logo-shiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions html/shiny.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Shiny :: Cheatsheet"
title: "Shiny for R :: Cheatsheet"
description: " "
image-alt: ""
execute:
Expand Down Expand Up @@ -36,16 +36,9 @@ Save your template as `app.R`.
Keep your app in a directory along with optional extra files.

- **app-name:** The directory name is the app name

```{=html}
<!-- -->
```
- **app.R**

- DESCRIPTION and README: (optional) used in showcase mode

- R/: (optional) directory of supplemental .R files that are sourced automatically, must be named `R`

- www/: (optional) directory of files to share with web browsers (images, CSS, .js, etc.), must be named `www`

Launch apps stored in a directory with `runApp(<path to directory>)`.
Expand Down Expand Up @@ -239,7 +232,8 @@ Call a reactive value from within the arguments of one of these functions to avo
ui <- fluidPage(
textInput("a","","A"),
textInput("z","","Z"),
textOutput("b"))
textOutput("b")
)
server <- function(input,output){
re <- reactive({
Expand Down Expand Up @@ -309,7 +303,7 @@ Call a reactive value from within the arguments of one of these functions to avo
- `observe(x, env)`: Creates an observer from the given expression.

- `observeEvent(eventExpr, handlerExpr, event.env, event.quoted, handler.env, handler.quoted, ..., label, suspended, priority, domain, autoDestroy, ignoreNULL, ignoreInit, once)`: Runs code in 2nd argument when reactive values in 1st argument change.
Alternative to `observe``()`.
Alternative to ``` observe``() ```.

```{r}
#| eval: false
Expand Down Expand Up @@ -409,9 +403,13 @@ To include a CSS file, use `includeCSS()`, or
```{r}
#| eval: false
tags$head(tags$link(rel = "stylesheet",
type = "text/css",
href = "<file name>"))
tags$head(
tags$link(
rel = "stylesheet",
type = "text/css",
href = "<file name>"
)
)
```

To include JavaScript, use `includeScript()`, or
Expand Down Expand Up @@ -556,9 +554,11 @@ Build your own theme by customizing individual arguments.
```{r}
#| eval: false
bs_theme(bg = "#558AC5",
fg = "#F9B02D",
...)
bs_theme(
bg = "#558AC5",
fg = "#F9B02D",
...
)
```

- `?bs_theme` for a full list of arguments.
Expand Down
Binary file modified keynotes/shiny.key
Binary file not shown.
Binary file modified pngs/shiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shiny.pdf
Binary file not shown.

0 comments on commit 6910ef5

Please sign in to comment.