main.Rmd 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ```{r knitr_options, include=FALSE}
  2. # knitr::knit imports knitr automatically
  3. # rmarkdown::render does not import knitr automatically
  4. library(knitr)
  5. opts_chunk$set(fig.path='figures/')
  6. ```
  7. <!-- https://yihui.name/knitr/options/ -->
  8. # h1
  9. ```{sh}
  10. date
  11. git rev-parse --verify HEAD
  12. git status --porcelain
  13. ```
  14. ## font style
  15. **bold**
  16. _italics_
  17. *emph*
  18. `code`
  19. ## list
  20. ### unordered
  21. - a
  22. - b
  23. ### numbered
  24. 1. a
  25. 2. b
  26. ## code
  27. ```cpp
  28. int main() {
  29. return 0;
  30. }
  31. ```
  32. ## quote
  33. > quote
  34. ## links
  35. [Fabian Peter Hammerle](http://fabian.hammerle.me/)
  36. [Repository][1]
  37. [//]: references
  38. [1]: https://git.hammerle.me/fphammerle/template-markdown
  39. ## R
  40. ```{r}
  41. 1+1
  42. ```
  43. Pi is `r pi`.
  44. ### plot
  45. ```{r}
  46. plot(1:10)
  47. ```
  48. \pagebreak
  49. # Resources
  50. [knitr in a knutshell](http://kbroman.org/knitr_knutshell/)
  51. [using pander with knitr](http://rapporter.github.io/pander/knitr.html)
  52. [pander options](http://rapporter.github.io/pander/#pander-options)
  53. [CrossTable documentation](https://www.rdocumentation.org/packages/descr/versions/1.1.3/topics/CrossTable)
  54. [R in clinical research](http://www.r-clinical-research.com/)
  55. [using knitr and pandoc to create reproducible scientific reports](http://galahad.well.ox.ac.uk/repro/)
  56. \pagebreak
  57. # R session info
  58. ```{r session_info}
  59. sessionInfo()
  60. ```