Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hadley/r4ds
R for data science: a book
https://github.com/hadley/r4ds
book bookdown data-science r
Last synced: 3 days ago
JSON representation
R for data science: a book
- Host: GitHub
- URL: https://github.com/hadley/r4ds
- Owner: hadley
- License: other
- Created: 2015-07-27T21:52:44.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T18:45:57.000Z (26 days ago)
- Last Synced: 2024-11-25T19:02:53.981Z (18 days ago)
- Topics: book, bookdown, data-science, r
- Language: R
- Homepage: http://r4ds.hadley.nz
- Size: 74.2 MB
- Stars: 4,586
- Watchers: 218
- Forks: 4,218
- Open Issues: 40
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - r4ds
- jimsghstars - hadley/r4ds - R for data science: a book (R)
README
# R for Data Science
[![Render and deploy Book to Netlify](https://github.com/hadley/r4ds/actions/workflows/build_book.yaml/badge.svg)](https://github.com/hadley/r4ds/actions/workflows/build_book.yaml)
This repository contains the source of [R for Data Science](http://r4ds.hadley.nz) book.
The book is built using [Quarto](https://quarto.org/).## 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.)``` r
#| 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:
``` r
#| echo: FALSE
#| out.width: NULL
knitr::include_graphics("screenshots/rstudio-wg.png")
```### O'Reilly
To generate book for O'Reilly, build the book then:
```{r}
# 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](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
By contributing to this book, you agree to abide by its terms.