bdd847c5bb
"POSIXct" is the thing tripping off the tongue in this sentence, not base R. |
||
---|---|---|
.github | ||
_freeze/arrow/execute-results | ||
data | ||
diagrams | ||
images | ||
quarto | ||
screenshots | ||
.Rbuildignore | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
DESCRIPTION | ||
EDA.qmd | ||
LICENSE | ||
README.md | ||
_common.R | ||
_quarto.yml | ||
arrow.qmd | ||
base-R.qmd | ||
communicate.qmd | ||
communication.qmd | ||
contribute.qmd | ||
contributors.R | ||
contributors.csv | ||
cover.jpg | ||
data-import.qmd | ||
data-tidy.qmd | ||
data-transform.qmd | ||
data-visualize.qmd | ||
databases.qmd | ||
datetimes.qmd | ||
factors.qmd | ||
figures.R | ||
functions.qmd | ||
import.qmd | ||
index.qmd | ||
intro.qmd | ||
issues.json | ||
iteration.qmd | ||
joins.qmd | ||
layers.qmd | ||
logicals.qmd | ||
missing-values.qmd | ||
numbers.qmd | ||
oreilly-colours.R | ||
plausible.html | ||
preface-2e.qmd | ||
program.qmd | ||
quarto-formats.qmd | ||
quarto.qmd | ||
r4ds.Rproj | ||
r4ds.scss | ||
rectangling.qmd | ||
regexps.qmd | ||
spreadsheets.qmd | ||
strings.qmd | ||
students.feather | ||
transform.qmd | ||
visualize.qmd | ||
webscraping.qmd | ||
whole-game.qmd | ||
workflow-basics.qmd | ||
workflow-help.qmd | ||
workflow-scripts.qmd | ||
workflow-style.qmd |
README.md
R for Data Science
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.