2015-07-28 05:52:19 +08:00
|
|
|
# R packages
|
|
|
|
|
|
|
|
This is code and text behind the [R for data science](http://r4ds.had.co.nz)
|
|
|
|
book.
|
|
|
|
|
2015-12-12 03:28:10 +08:00
|
|
|
The site is built using [bookdown]
|
|
|
|
|
|
|
|
```{r}
|
|
|
|
devtools::install_github("yihui/knitr")
|
|
|
|
devtools::install_github("rstudio/bookdown")
|
|
|
|
```
|
|
|
|
|
|
|
|
jekyll, with a custom plugin to render `.rmd` files with
|
2015-07-28 05:52:19 +08:00
|
|
|
knitr and pandoc. To create the site, you need:
|
|
|
|
|
|
|
|
* jekyll gem: `gem install jekyll`
|
|
|
|
* bookdown: `install_github("hadley/bookdown")`
|
|
|
|
* [pandoc](http://johnmacfarlane.net/pandoc/)
|
|
|
|
* [knitr](http://yihui.name/knitr/): `install.packages("knitr")`
|
2016-02-16 03:40:19 +08:00
|
|
|
|
|
|
|
The R packages used in this book can be installed via
|
|
|
|
|
|
|
|
```{r}
|
|
|
|
devtools::install_github("hadley/r4ds")
|
|
|
|
```
|