Skip to content

Commit 41d94c5

Browse files
committed
Initial commit
0 parents  commit 41d94c5

10 files changed

+125
-0
lines changed

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# History files
2+
.Rhistory
3+
.Rapp.history
4+
5+
# Session Data files
6+
.RData
7+
8+
# Example code in package build process
9+
*-Ex.R
10+
11+
# Output files from R CMD build
12+
/*.tar.gz
13+
14+
# Output files from R CMD check
15+
/*.Rcheck/
16+
17+
# RStudio files
18+
.Rproj.user/
19+
*.Rproj
20+
21+
# produced vignettes
22+
vignettes/*.html
23+
vignettes/*.pdf
24+
25+
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
26+
.httr-oauth
27+
28+
# knitr and R Markdown default cache directories
29+
/*_cache/
30+
/cache/
31+
32+
# Temporary files created by R Markdown
33+
*.utf8.md
34+
*.knit.md
35+
36+
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
37+
rsconnect/
38+
39+
# bookdown files
40+
_book
41+
_bookdown_files
42+
_main.*

DESCRIPTION

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Imports:
2+
bookdown,
3+
ggrepel,
4+
hexbin,
5+
knitr,
6+
rmarkdown,
7+
tidyverse

LICENSE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[![Creative Commons License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/)
2+
3+
This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Book
2+
3+
This repository contains the source for the book [Book](https://dcl-book.stanford.edu/).
4+
5+
We welcome suggestions for improvements.
6+
7+
* Small matters, such as typos, can be submitted through pull requests.
8+
* Larger matters can be submitted through issues.

_bookdown.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
new_session: true
2+
delete_merged_file: true
3+
4+
rmd_files: [
5+
"index.Rmd",
6+
"references.Rmd"
7+
]
8+
9+
before_chapter_script: "_common.R"

_common.R

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
set.seed(858)
2+
3+
options(
4+
digits = 3,
5+
dplyr.print_max = 6,
6+
dplyr.print_min = 6
7+
)
8+
9+
knitr::opts_chunk$set(
10+
collapse = TRUE,
11+
comment = "#>",
12+
fig.align = 'center',
13+
fig.asp = 0.618, # 1 / phi
14+
fig.show = "hold"
15+
)
16+
17+
image_dpi <- 125

_output.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
bookdown::gitbook:
2+
split_by: rmd
3+
config:
4+
toc:
5+
collapse: section
6+
before: |
7+
<li><strong><a href="./">Modeling</a></strong></li>
8+
edit:
9+
link: https://github.com/dcl-docs/model/edit/master/%s
10+
download: null
11+
sharing: null

index.Rmd

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
knitr: bookdown::render_book
3+
title: "Book"
4+
author: "Sara Altman, Bill Behrman"
5+
date: "`r Sys.Date()`"
6+
description: "Description."
7+
url: 'https\://dcl-book.stanford.edu'
8+
github-repo: dcl-docs/book
9+
site: bookdown::bookdown_site
10+
documentclass: book
11+
bibliography: references.bib
12+
link-citations: true
13+
---
14+
15+
# Welcome {-}
16+
17+
18+
## How to read this book {-}
19+
20+
21+
## An evolving book {-}
22+
23+
This book is not intended to be static. Starting in January 2020, we use this book to teach modeling in the Stanford [Data Challenge Lab](https://datalab.stanford.edu/challenge-lab) (DCL) course. The DCL functions as a testing ground for educational materials, as our students give us routine feedback on what they read and do in the course. We use this feedback to constantly improve our materials, including this book. The [source for the book](https://github.com/dcl-docs/book) is also available on GitHub where we welcome suggestions for improvements.
24+
25+
This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).

references.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`r if (knitr:::is_html_output()) "# References {-}"`

references.bib

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+

0 commit comments

Comments
 (0)