Skip to content

Commit 4ab1b60

Browse files
committed
Update branch name
1 parent 246182e commit 4ab1b60

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

_output.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bookdown::gitbook:
1313
collapse: section
1414
before: |
1515
<li><a href="./">Mastering Shiny</a></li>
16-
edit: https://github.com/hadley/mastering-shiny/edit/master/%s
16+
edit: https://github.com/hadley/mastering-shiny/edit/main/%s
1717
download: []
1818
sharing:
1919
facebook: no

basic-case-study.Rmd

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ If you want to get the data on to your own computer, run this code:
7676
```{r, eval = "FALSE"}
7777
dir.create("neiss")
7878
download <- function(name) {
79-
url <- "https://github.com/hadley/mastering-shiny/raw/master/neiss/"
79+
url <- "https://github.com/hadley/mastering-shiny/raw/main/neiss/"
8080
download.file(paste0(url, name), paste0("neiss/", name), quiet = TRUE)
8181
}
8282
download("injuries.tsv.gz")
@@ -236,7 +236,7 @@ Note that creating the `summary` reactive isn't strictly necessary here, as it's
236236
But it's good practice to keep computing and plotting separate as it makes the flow of the app easier to understand, and will make it easier to generalise in the future.
237237

238238
A screenshot of the resulting app is shown in Figure \@ref(fig:prototype).
239-
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/prototype.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-prototype/>.
239+
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/prototype.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-prototype/>.
240240

241241
```{r prototype, echo = FALSE, out.width = "100%", fig.cap="First prototype of NEISS exploration app"}
242242
case_study_screenshot("prototype")
@@ -272,7 +272,7 @@ I made one other change to improve the aesthetics of the app: I forced all table
272272
This makes the output more aesthetically pleasing because it reduces the amount of incidental variation.
273273

274274
A screenshot of the resulting app is shown in Figure \@ref(fig:polish-tables).
275-
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/polish-tables.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-polish-tables>.
275+
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/polish-tables.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-polish-tables>.
276276

277277
```{r polish-tables, echo = FALSE, out.width = "100%", fig.cap="The second iteration of the app improves the display by only showing the most frequent rows in the summary tables"}
278278
case_study_screenshot("polish-tables")
@@ -295,7 +295,7 @@ Then I condition on that input when generating the plot:
295295
```
296296

297297
A screenshot of the resulting app is shown in Figure \@ref(fig:rate-vs-count).
298-
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/rate-vs-count.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-rate-vs-count>.
298+
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/rate-vs-count.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-rate-vs-count>.
299299

300300
```{r rate-vs-count, echo = FALSE, out.width = "100%", fig.cap = "In this iteration, we give the user the ability to switch between displaying the count or the population standardised rate on the y-axis."}
301301
case_study_screenshot("rate-vs-count")
@@ -319,7 +319,7 @@ I then use `eventReactive()` to create a reactive that only updates when the but
319319
```
320320

321321
A screenshot of the resulting app is shown in Figure \@ref(fig:narrative).
322-
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/narrative.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-narrative>.
322+
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/narrative.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-narrative>.
323323

324324
```{r narrative, echo = FALSE, out.width = "100%", fig.cap = "The final iteration adds the ability to pull out a random narrative from the selected rows"}
325325
case_study_screenshot("narrative")

0 commit comments

Comments
 (0)