Go to file
Hadley Wickham 1e62bae0f8 Polish preface 2023-01-24 09:55:40 -06:00
.github Try renaming action in 2e 2022-11-18 12:58:34 -06:00
_freeze/arrow/execute-results Adds chapter about arrow (#1137) 2022-12-08 14:43:11 +13:00
data Add section on googlesheets (#1182) 2022-12-14 08:30:23 -05:00
diagrams Wrangle -> import (#1177) 2022-12-07 21:48:59 -05:00
images Add section on googlesheets (#1182) 2022-12-14 08:30:23 -05:00
oreilly Re-render book for O'Reilly 2023-01-12 17:22:57 -06:00
quarto Label x and y arguments in aes(), closes #1159 2022-12-12 13:35:15 -05:00
screenshots Typo + grammatical fixes + issue triage (#1217) 2023-01-05 00:26:14 -05:00
.Rbuildignore Add code of conduct and update acknowledgements 2020-10-05 17:56:27 -05:00
.gitignore Adds chapter about arrow (#1137) 2022-12-08 14:43:11 +13:00
CODE_OF_CONDUCT.md Actually commit code of conduct 2020-10-05 17:58:33 -05:00
DESCRIPTION Use curl::multi_download() 2023-01-23 08:18:43 -06:00
EDA.qmd Text insertion and arguments update/alignment (#1232) 2023-01-20 07:55:35 -06:00
LICENSE First commit 2015-07-27 16:52:19 -05:00
README.md Fix: Workflow link build_book.yml (#1224) 2023-01-10 07:47:17 -06:00
_common.R Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
_quarto.yml Wrangle -> import (#1177) 2022-12-07 21:48:59 -05:00
arrow.qmd Use curl::multi_download() 2023-01-23 08:18:43 -06:00
base-R.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
communicate.qmd New visualize part (#1115) 2022-12-05 07:05:38 +13:00
communication.qmd Supress tidyverse messaging 2023-01-23 17:56:11 -06: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 Convert all statuses to complete 2023-01-23 08:14:12 -06:00
data-tidy.qmd Typo + grammatical fixes + issue triage (#1217) 2023-01-05 00:26:14 -05:00
data-transform.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
data-visualize.qmd Use dev tidyverse (#1240) 2023-01-23 07:48:36 -06:00
databases.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
datetimes.qmd Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
factors.qmd Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
figures.R Copy for creating figures dir 2016-11-21 08:28:57 -06:00
functions.qmd Drop a few figures 2023-01-24 09:55:34 -06:00
import.qmd Wrangle -> import (#1177) 2022-12-07 21:48:59 -05:00
index.qmd Mention translations 2022-11-18 15:13:17 -06:00
intro.qmd Tweak package install advice 2023-01-23 08:27:51 -06:00
issues.json More writing about purrr and lists 2015-11-21 08:31:32 +13:00
iteration.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
joins.qmd Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
layers.qmd Supress tidyverse messaging 2023-01-23 17:56:11 -06:00
logicals.qmd Fix case_when() logic error 2023-01-23 08:14:12 -06:00
missing-values.qmd Update regexps (#1237) 2023-01-23 08:35:09 -06:00
numbers.qmd Numbers tweaks 2023-01-24 09:16:09 -06: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 Polish preface 2023-01-24 09:55:40 -06:00
program.qmd Reduce contents of programming intro 2023-01-24 09:46:19 -06:00
quarto-formats.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
quarto-workflow.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
quarto.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06: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 Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
regexps.qmd Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
spreadsheets.qmd Minor corrections (#1244) 2023-01-23 16:23:26 -06:00
strings.qmd Minor updates to reduce page count 2023-01-24 09:33:18 -06: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 Minor updates to reduce page count 2023-01-24 09:33:18 -06:00
whole-game.qmd Fix typos in chapters Whole game, Data visualization, Numbers (#1215) 2023-01-04 21:21:34 -05:00
workflow-basics.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
workflow-help.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
workflow-pipes.qmd Typo + grammatical fixes + issue triage (#1217) 2023-01-05 00:26:14 -05:00
workflow-scripts.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06:00
workflow-style.qmd Convert all statuses to complete 2023-01-23 08:14:12 -06: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.