- https://ouhscbbmc.github.io/data-science-practices-1/coding.html
- https://bookdown.org/yihui/bookdown/
- https://bookdown.org/
- https://github.com/rstudio/bookdown
- Some people forget how to write unless they're in Office
- Office has helpful grammar checks
- markdown is super easy
- leverages your existing knitr knowledge
- same syntax used in GitHub issues & Stack Overflow
- can facilitate similar products, like blogdown
- publish early drafts
- accessible by wide group
- editable by wide group (with GitHub PRs)
- plain text is editable with almost anything
- all the benefits of GitHub
- collaboration
- tracking & recover changes
- move between machines (e.g., quick additions w/ tablet)
- leverages R --all the modeling & graphs
- multiple output formats every time
- html on server
- epub
- No real server is involved.
- When the bookdown files are compiled, self-contained html/pdf/epub can be read on any client.
- unlike problems with Wordpress sites
- the site should last longer, without as much maintenance
- VS Code has a portable spelling list
- As a consumer/reader
- different formats
- searchable
- editable
- transparent -if I need to reproduce/follow
- R
- RStudio
- rmarkdown
- tinytex?
- https://ouhscbbmc.github.io/data-science-practices-1/workstation.html
- https://bookdown.org/yihui/bookdown/
- Start w/ simple example
- Render
- Push to GitHub (after a quick initial set up)
- Modify & Repeat
- knit-merge (k-m) vs merge-knit (m-k)
- special headers (section 2.2.3)
- cross-references & references
- table of contents, figures, tables, & equations
- bibliography
- index
- captions
- css styling
-
Start with md files. Escalate to Rmd only if necessary
-
Set heading names to facilitate references. The explicit value also helps search & replace.
-
Don't number the files (e.g.,
01-intro.md
,02-install.md
). Use_bookdown.yml
to order chapters. -
Add whenever you can.
- Full-scale writing at a desktop during quiet time and then render & push.
- Add a few sentences in the browser, but not yet render & push.
- Jot in a scratch pad and move it around later.
-
Combination of Visual Studio Code & RStudio.
- VS Code packages that help markdown development.
- markdownlint
- previewing
- spell check
- VS Code packages that help markdown development.
- How to improve collaboration and combining chapters?
- Deployment scenarios:
- public throughout the book's whole life span --ideal for bookdown
- private during writing, then public
- private --accessible only to authors
- private --accessible only to team (some don't have RStudio, and just need the output)