Go to file
Floris Vanderhaeghe aa5eaac43e
logicals.qmd: use better variable names in example (#1623)
The variable names of this example were copied from the previous example, where logical vectors were summarized with `any()` and `all()`. However the present example the summary is with `sum()` and `mean()`, which was not updated in the variable names.
2024-01-28 20:11:21 -05:00
.github Update Quarto set up action 2024-01-28 14:52:53 -05:00
_freeze/arrow/execute-results Download Seattle library (#1533) 2023-11-10 15:09:21 -05:00
data A round of edits for length (#1278) 2023-02-13 02:22:17 -05:00
diagrams Fix pepper diagram (#1499) 2023-05-25 11:47:24 -04:00
images Minimise base-R a little 2023-02-07 15:41:16 -06:00
quarto Fix yaml from rmarkdown -> quarto for format 2023-05-25 11:43:06 -04:00
screenshots Fixed typo (#1397) 2023-04-10 00:13:02 -04: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 dplyr is in tidyverse already 2023-05-26 11:53:14 -04:00
EDA.qmd Fix typo, closes #1535 2023-10-30 09:11:50 -04: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 Remove status (#1527) 2023-07-13 11:52:21 -04:00
_quarto.yml Undo 2023-07-11 14:42:47 -04:00
arrow.qmd Download Seattle library (#1533) 2023-11-10 15:09:21 -05:00
base-R.qmd rewrite requires max(). (#1495) 2023-07-16 07:27:55 -05:00
communicate.qmd Remove status (#1527) 2023-07-13 11:52:21 -04:00
communication.qmd Remove status (#1527) 2023-07-13 11:52:21 -04: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 acknowledgements (#1507) 2023-05-25 23:37:48 -04:00
cover.jpg Update cover (#1419) 2023-04-10 17:27:44 -04:00
data-import.qmd Update typo in data-import.qmd (#1570) 2023-08-25 20:42:20 -04:00
data-tidy.qmd Fix typos in subsection "6.3.2 How does pivoting work?" (#1534) 2023-07-16 07:28:14 -05:00
data-transform.qmd Make variable names consistent in data-transform.qmd (#1604) 2023-11-30 01:05:30 -05:00
data-visualize.qmd Fix typos, closes #1537 2023-10-30 08:57:46 -04:00
databases.qmd Fix var name, closes #1513 2023-11-09 00:24:28 -05:00
datetimes.qmd Swap %d and %e to fix typo, closes #1550 2023-11-09 09:36:49 -05:00
factors.qmd Fix broken alt text, adresses #1546 (#1573) 2023-10-25 13:07:34 -07:00
figures.R Copy for creating figures dir 2016-11-21 08:28:57 -06:00
functions.qmd Call it walrus operator, closes #1591 2023-11-09 09:32:17 -05:00
import.qmd Fix typo, closes #1552 2023-08-15 08:51:26 -04:00
index.qmd Add link to solutions, closes #1555 2023-11-09 00:32:05 -05:00
intro.qmd Remove numbering from Introduction -- intro.qmd (#1563) 2023-11-08 23:24:50 -05:00
issues.json More writing about purrr and lists 2015-11-21 08:31:32 +13:00
iteration.qmd Fix typo, closes #1601 2023-11-20 08:10:43 -05:00
joins.qmd Use join_by() 2023-11-08 22:33:13 -05:00
layers.qmd Clarify exercise, closes #1543 2023-11-09 10:30:41 -05:00
logicals.qmd logicals.qmd: use better variable names in example (#1623) 2024-01-28 20:11:21 -05:00
missing-values.qmd Fix typo in missing-values.qmd (#1595) 2023-11-10 12:48:02 -05:00
numbers.qmd Fix typo in numbers.qmd (#1602) 2023-11-25 10:38:06 -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 make consistent with other parts notation (#1508) 2023-05-29 09:23:55 +10:00
program.qmd Make syntax for multi-line fig-cap and fig-alt consistent 2023-05-26 11:44:08 -04:00
quarto-formats.qmd Fix typo (#1624) 2024-01-28 13:17:22 -05:00
quarto.qmd Update quarto.qmd (#1621) 2024-01-19 15:46:00 -05:00
r4ds.Rproj Don't try and append new lines 2022-11-21 09:41:18 -06:00
r4ds.scss Tweak css styles 2023-05-18 15:01:20 -05:00
rectangling.qmd Add missing word in section 24.6 (#1586) 2023-10-25 09:29:31 -04:00
regexps.qmd Fix typo, closes #1545 2023-11-09 10:15:29 -05:00
spreadsheets.qmd Add links to Excel files, closes #1467 2023-11-08 23:46:29 -05:00
strings.qmd Clarify str_view() color, closes #1479 2023-11-11 07:12:20 -05:00
students.feather Draft/outline of spreadsheets (#949) 2021-10-26 15:00:33 -04:00
transform.qmd Make syntax for multi-line fig-cap and fig-alt consistent 2023-05-26 11:44:08 -04:00
visualize.qmd Remove status (#1527) 2023-07-13 11:52:21 -04:00
webscraping.qmd Change IMDB link to archived version (#1532) 2023-07-16 07:28:58 -05:00
whole-game.qmd Make syntax for multi-line fig-cap and fig-alt consistent 2023-05-26 11:44:08 -04:00
workflow-basics.qmd Remove status (#1527) 2023-07-13 11:52:21 -04:00
workflow-help.qmd Remove status (#1527) 2023-07-13 11:52:21 -04:00
workflow-scripts.qmd Update workflow-scripts.qmd 2024-01-28 14:56:49 -05:00
workflow-style.qmd Remove status (#1527) 2023-07-13 11:52:21 -04: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.