Skip to content

Commit

Permalink
Merge pull request #12 from raffaem/render_one_file
Browse files Browse the repository at this point in the history
Instructions on how to render a single file
  • Loading branch information
danhalligan authored Dec 17, 2024
2 parents 1c79b15 + 1b8ceed commit 2ac6d34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ Rebuild the book with compiled solutions by running:
bookdown::render_book('index.Rmd', 'bookdown::gitbook')
```

To render only one file/chapter (e.g. solutions for chapter 2), use:

```{r}
rmarkdown::render(input="02-statistical-learning.Rmd", output_format=bookdown::pdf_document2())
```

[bookdown]: https://github.com/rstudio/bookdown
[GitHub Actions]: https://docs.github.com/en/actions
[GitHub pages]: https://pages.github.com/
Expand Down

0 comments on commit 2ac6d34

Please sign in to comment.