-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathindex.qmd
More file actions
executable file
·84 lines (70 loc) · 2.85 KB
/
Copy pathindex.qmd
File metadata and controls
executable file
·84 lines (70 loc) · 2.85 KB
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
# Welcome to ModernDive (v2) {.unnumbered}
```{r setup-init, include=FALSE}
library(knitr)
source("scripts/image_functions.R")
```
```{r set-options, include=FALSE}
if (!"knitr" %in% installed.packages()) {
install.packages("knitr", repos = "http://cran.rstudio.com")
}
library(knitr)
if (is_html_output()) {
options(width = 120)
}
options(digits = 7, knitr.kable.NA = "NA")
opts_chunk$set(
tidy = FALSE,
fig.align = "center",
comment = NA,
fig.retina = 1,
fig.asp = 2/3
)
```
```{r index-conditional, include=FALSE}
needed_CRAN_pkgs <- c(
"dygraphs", "fivethirtyeight", "gapminder", "ggplot2movies", "infer",
"ISLR2",
"janitor", "knitr", "moderndive",
"nycflights23", "scales", "tidyverse", "broom",
"gridExtra",
"GGally",
"devtools", "ggrepel", "here", "kableExtra", "mvtnorm", "patchwork",
"remotes", "rmarkdown", "sessioninfo", "viridis", "webshot"
)
new_pkgs <- needed_CRAN_pkgs[!(needed_CRAN_pkgs %in% installed.packages())]
if (length(new_pkgs)) {
install.packages(new_pkgs, repos = "http://cran.rstudio.com")
}
needed_pkgs <- needed_CRAN_pkgs
write_bib(
c(
.packages(),
"broom", "dplyr",
"fivethirtyeight", "forcats", "gapminder",
"ggplot2", "ggplot2movies", "ggrepel", "gridExtra",
"infer", "ISLR2", "janitor", "kableExtra", "knitr",
"lubridate", "moderndive", "mvtnorm", "GGally",
"nycflights23", "patchwork", "purrr", "readr", "rmarkdown",
"scales", "sessioninfo", "stringr", "tibble", "tidyr", "tidyverse",
"viridis", "viridisLite"
),
here::here("bib", "packages.bib")
)
```
```{r images, include=FALSE}
source("scripts/image_functions.R")
```
```{r index-create-dev_version, echo=FALSE, include=FALSE}
dev_version <- FALSE
```
```{r ggplot-theme, include=FALSE}
library(ggplot2)
theme_set(theme_grey())
generate_r_file_link <- function(file) {
cat(glue::glue("An R script file of all R code used in this chapter is available [here](scripts/{file})."))
}
```
<div class='book-cover'><img src="images/logos/v2_cover.jpg" width="350" alt=""/></div>
This is the [website](https://moderndive.com/v2/) for *Statistical Inference via Data Science: A ModernDive into R and the Tidyverse (Second Edition)*. Visit the [GitHub repository for this site](https://github.com/moderndive/ModernDive_book/tree/v2/).
The First Edition of this book is available at <https://moderndive.com>.
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />This work by [Chester Ismay](https://chester.rbind.io/), [Albert Y. Kim](https://rudeboybert.github.io/), and [Arturo Valdivia](https://avaldivi6.github.io) is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.