Go to file
mine-cetinkaya-rundel 661b0a5339 Adding back an NA, closes #1273 2023-02-24 00:18:33 -05:00
.github Try renaming action in 2e 2022-11-18 12:58:34 -06:00
_freeze/arrow/execute-results Update arrow freeze 2023-02-07 10:05:45 -06:00
data A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
diagrams Minimise base-R a little 2023-02-07 15:41:16 -06:00
images Minimise base-R a little 2023-02-07 15:41:16 -06:00
quarto A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
screenshots A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
.Rbuildignore Add code of conduct and update acknowledgements 2020-10-05 17:56:27 -05:00
.gitignore Remove O'Reilly files 2023-02-14 07:37:48 -06:00
CODE_OF_CONDUCT.md Actually commit code of conduct 2020-10-05 17:58:33 -05:00
DESCRIPTION Update DESCRIPTION 2023-02-13 11:49:46 -05:00
EDA.qmd Give a bit more direction 2023-02-21 08:54:08 -05:00
LICENSE First commit 2015-07-27 16:52:19 -05:00
README.md Remove invalid install instructions 2023-02-07 10:05:57 -06:00
_common.R More minor page count tweaks & fixes 2023-01-26 10:36:07 -06:00
_quarto.yml A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
arrow.qmd Change `data set` to `dataset` (#1282) 2023-02-14 07:32:09 -06:00
base-R.qmd Fix some heading issues 2023-02-14 07:37:48 -06:00
communicate.qmd New visualize part (#1115) 2022-12-05 07:05:38 +13:00
communication.qmd Typo in plot alt text (#1295) 2023-02-21 07:08:26 -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 Minor Typo Fixes in Section 8.2.1 (#1287) 2023-02-15 07:49:11 -05:00
data-tidy.qmd Minor Correction in 6.5 Summary Section (#1285) 2023-02-15 07:47:51 -05:00
data-transform.qmd a missing word inserted (#1298) 2023-02-23 23:49:43 -05:00
data-visualize.qmd Fix capitalization, closes #1286 2023-02-23 23:53:52 -05:00
databases.qmd Minimise iteration 2023-02-07 15:48:02 -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 Change `data set` to `dataset` (#1282) 2023-02-14 07:32:09 -06:00
import.qmd Wrangle -> import (#1177) 2022-12-07 21:48:59 -05:00
index.qmd `size` to `linewidth` in ggplots (#1248) 2023-01-25 17:53:02 -05:00
intro.qmd Change `data set` to `dataset` (#1282) 2023-02-14 07:32:09 -06:00
issues.json More writing about purrr and lists 2015-11-21 08:31:32 +13:00
iteration.qmd Minimise iteration 2023-02-07 15:48:02 -06:00
joins.qmd Clarify plaintext and fix punctuation (#1251) 2023-01-27 15:03:36 -06:00
layers.qmd Typo Correction in Section 11.3 (#1289) 2023-02-15 21:51:18 -05:00
logicals.qmd Clarify plaintext and fix punctuation (#1251) 2023-01-27 15:03:36 -06:00
missing-values.qmd Change `data set` to `dataset` (#1282) 2023-02-14 07:32:09 -06:00
numbers.qmd Change `data set` to `dataset` (#1282) 2023-02-14 07:32: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 Fix vs. e.g. i.e. punctuation (#1249) 2023-01-27 09:51:22 -06:00
quarto.qmd A round of edits for length (#1278) 2023-02-13 02:22:17 -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 Remove another rectangling example 2023-02-07 10:58:33 -06:00
regexps.qmd Fix vs. e.g. i.e. punctuation (#1249) 2023-01-27 09:51:22 -06:00
spreadsheets.qmd A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
strings.qmd Adding back an NA, closes #1273 2023-02-24 00:18:33 -05: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 Fix some heading issues 2023-02-14 07:37:48 -06:00
webscraping.qmd Fix some heading issues 2023-02-14 07:37:48 -06:00
whole-game.qmd Change `data set` to `dataset` (#1282) 2023-02-14 07:32:09 -06:00
workflow-basics.qmd Improve sentences (#1279) 2023-02-13 13:29:46 -06:00
workflow-help.qmd Some technical review comments 2023-02-21 09:19:55 -05:00
workflow-pipes.qmd Fix vs. e.g. i.e. punctuation (#1249) 2023-01-27 09:51:22 -06:00
workflow-scripts.qmd More minor page count tweaks & fixes 2023-01-26 10:36:07 -06:00
workflow-style.qmd Fixed typo (#1297) 2023-02-22 11:35:38 -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.

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:

# pak::pak("hadley/htmlbook")
htmlbook::convert_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)

Then commit and push to atlas.

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.