Go to file
Hadley Wickham 4635426ec3
New chapter on web scraping (#1141)
* First pass at scraping chapter

* Remove unneeded library() call

* Tweaks

* More on the legalities

* More writing

* Bit more on webscraping

* More on scraping

* Some edits + comments

* Add summary + comment about APIs

* More polishing

Co-authored-by: mine-cetinkaya-rundel <cetinkaya.mine@gmail.com>
2022-12-07 11:06:36 +13:00
.github Try renaming action in 2e 2022-11-18 12:58:34 -06:00
data Eliminate parsing chapter (#1128) 2022-11-17 09:56:08 -06:00
diagrams New visualize part (#1115) 2022-12-05 07:05:38 +13:00
images New visualize part (#1115) 2022-12-05 07:05:38 +13:00
oreilly Actually strip status 2022-11-18 11:55:22 -06:00
quarto Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
screenshots New chapter on web scraping (#1141) 2022-12-07 11:06:36 +13:00
.Rbuildignore Add code of conduct and update acknowledgements 2020-10-05 17:56:27 -05:00
.gitignore Commit O'Reilly HTML files to monitor fixes 2022-11-18 10:28:19 -06:00
CODE_OF_CONDUCT.md Actually commit code of conduct 2020-10-05 17:58:33 -05:00
DESCRIPTION New visualize part (#1115) 2022-12-05 07:05:38 +13:00
EDA.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
LICENSE First commit 2015-07-27 16:52:19 -05:00
README.md Fix code language 2022-11-18 11:26:25 -06:00
_common.R Actually strip status 2022-11-18 11:55:22 -06:00
_quarto.yml New visualize part (#1115) 2022-12-05 07:05:38 +13:00
base-R.qmd Consistently style for loops 2022-12-06 12:59:03 -06:00
communicate.qmd New visualize part (#1115) 2022-12-05 07:05:38 +13:00
communication.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
contribute.qmd Convert to Quarto book (#1026) 2022-05-14 08:46:49 +12:00
contributors.R Thank all contributors on home page 2018-08-24 10:54:58 -05:00
contributors.csv Update contributors 2022-11-21 09:40:19 -06:00
cover.png Colour cover 2016-12-02 12:11:59 -06:00
data-import.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
data-tidy.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
data-transform.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
data-visualize.qmd Fix units for body mass 2022-12-06 13:10:24 -06:00
databases.qmd Use US spelling of summarize() 2022-11-18 16:07:54 -06:00
datetimes.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
factors.qmd Fix typo 2022-12-05 06:39:22 -05:00
figures.R Copy for creating figures dir 2016-11-21 08:28:57 -06:00
functions.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
index.qmd Mention translations 2022-11-18 15:13:17 -06:00
intro.qmd UK -> US spelling, addresses #1160 2022-12-05 02:46:05 -05:00
issues.json More writing about purrr and lists 2015-11-21 08:31:32 +13:00
iteration.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
joins.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
layers.qmd UK -> US spelling, addresses #1160 2022-12-05 02:46:05 -05:00
list-columns.qmd Convert to Quarto book (#1026) 2022-05-14 08:46:49 +12:00
logicals.qmd Update logicals.qmd (#1166) 2022-12-05 09:37:03 +13:00
missing-values.qmd Add x and y to aes(), addresses #1159 2022-12-05 03:12:12 -05:00
numbers.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
oreilly-colours.R Use US spelling of summarize() 2022-11-18 16:07:54 -06:00
plausible.html Convert to Quarto book (#1026) 2022-05-14 08:46:49 +12:00
preface-2e.qmd Update preface-2e.qmd (#1163) 2022-11-30 07:15:53 -05:00
prog-strings.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
program.qmd Fix broken links due to new base R chapter 2022-11-04 10:45:25 -05:00
quarto-formats.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
quarto-workflow.qmd Communicate wrap up (#1136) 2022-11-12 15:08:58 -05:00
quarto.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
r4ds.Rproj Don't try and append new lines 2022-11-21 09:41:18 -06:00
r4ds.scss Restore underlines for linked code 2022-11-21 08:47:39 -06:00
rectangling.qmd Title change + feedback from O'Reilly 2022-11-29 09:26:17 -06:00
regexps.qmd New chapter on web scraping (#1141) 2022-12-07 11:06:36 +13:00
spreadsheets.qmd UK -> US spelling, addresses #1160 2022-12-05 02:46:05 -05:00
strings.qmd stringr 1.5.0 now on CRAN (#1169) 2022-12-05 06:55:03 +13:00
students.feather Draft/outline of spreadsheets (#949) 2021-10-26 15:00:33 -04:00
transform.qmd New visualize part (#1115) 2022-12-05 07:05:38 +13:00
visualize.qmd Update status 2022-12-06 08:27:19 -05:00
webscraping.qmd New chapter on web scraping (#1141) 2022-12-07 11:06:36 +13:00
whole-game.qmd UK -> US spelling, addresses #1160 2022-12-05 02:46:05 -05:00
workflow-basics.qmd New visualize part (#1115) 2022-12-05 07:05:38 +13:00
workflow-help.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
workflow-pipes.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
workflow-scripts.qmd Fix typo 2022-11-18 16:26:42 -06:00
workflow-style.qmd Fix vs. e.g. i.e. punctuation (#1157) 2022-12-06 11:51:11 -05:00
wrangle.qmd Update transform part intro 2022-09-29 11:22:45 -05:00

README.md

R for Data Science

Render and deploy Book to Netlify

This repository contains the source of R for Data Science book. The book is built using Quarto.

The R packages used in this book can be installed via

devtools::install_github("hadley/r4ds")

Images

Omnigraffle drawings

  • Font: 12pt Guardian Sans Condensed / Ubuntu mono

  • Export as 300 dpi png.

  • Website font is 18 px = 13.5 pt, so scale dpi to match font sizes: 270 = 300 * 12 / 13.5. (I also verified this empirically by screenshotting.)

    #| echo: FALSE
    #| out.width: NULL
    knitr::include_graphics("diagrams/transform.png", dpi = 270)
    

Screenshots

  • Make sure you're using a light theme. For small interface elements (eg. toolbars), zoom in twice.

  • Screenshot with Cmd + Shift + 4.

  • Don't need to set dpi:

    #| echo: FALSE
    #| out.width: NULL
    knitr::include_graphics("screenshots/rstudio-wg.png")
    

O'Reilly

To generate book for O'Reilly, build the book then:

devtools::load_all("../minibook/"); process_book()

html <- list.files("oreilly", pattern = "[.]html$", full.names = TRUE)
file.copy(html, "../r-for-data-science-2e/", overwrite = TRUE)

pngs <- list.files("oreilly", pattern = "[.]png$", full.names = TRUE, recursive = TRUE)
dest <- gsub("oreilly", "../r-for-data-science-2e/", pngs)
fs::dir_create(unique(dirname(dest)))
file.copy(pngs, dest, overwrite = TRUE)

Code of Conduct

Please note that r4ds uses a Contributor Code of Conduct. By contributing to this book, you agree to abide by its terms.