You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 satır
3.6KB

  1. ---
  2. title: "Bulma Test"
  3. subtitle: "A minimal Bulma RMarkdown Template"
  4. author:
  5. - name: Garrick Aden-Buie
  6. url: https://garrickadenbuie.com
  7. extra:
  8. - "Moffitt Cancer Center"
  9. - "[@grrrck](https://twitter.com/grrrck)"
  10. - name: Travis Gerke
  11. url: https://travisgerke.com
  12. extra:
  13. - "Moffitt Cancer Center"
  14. - "@travisgerke"
  15. date: "12/7/2018"
  16. header-links:
  17. - name: Github
  18. url: https://github.com/gerkelab
  19. - name: Home
  20. url: https://gerkelab.com
  21. # bulma:
  22. # hero: ["dark", "bold"]
  23. output:
  24. bulmaRmd::bulma_document: default
  25. # css: custom.css
  26. html_document_base:
  27. pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ]
  28. md_document: default
  29. bibliography: bibfile.bib
  30. ---
  31. ```{r setup, include=FALSE}
  32. knitr::opts_chunk$set(echo = TRUE)
  33. ```
  34. <!--
  35. <div class="level">
  36. <div class="level-item has-text-centered">
  37. <div>
  38. <p class="title is-5">Garrick Aden-Buie</p>
  39. <p class="subtitle is-6">Moffitt Cancer Center<br>&commat;grrrck<br>garrickadenbuie.com</p>
  40. </div>
  41. </div>
  42. <div class="level-item has-text-centered">
  43. <div>
  44. <p class="title is-5">Travis Gerke</p>
  45. <p class="subtitle is-6">Moffitt Cancer Center<br>&commat;travisgerke<br>travisgerke.com</p>
  46. </div>
  47. </div>
  48. </div>
  49. -->
  50. A bit of an _introduction_ here. We no longer need to start an article by writing this:
  51. ```latex
  52. \documentclass{article}
  53. \begin{document}
  54. \end{document}
  55. ```
  56. # Start with a cool section
  57. You can use traditional **Markdown** syntax, such as [links](http://yihui.name/knitr) and `code`. Here is a quote:
  58. > A girl phoned me the other day and said "Come on over, there's nobody home." I went over. Nobody was home. -- Rodney Dangerfield
  59. # Followed by another section
  60. Of course you can write lists:
  61. - apple
  62. - pear
  63. - banana
  64. Or ordered lists:
  65. 1. items
  66. 1. will
  67. 1. be
  68. 1. ordered
  69. - nested
  70. - items
  71. # Okay, some R code
  72. ```{r linear-model}
  73. fit = lm(dist ~ speed + I(speed^2), data = cars)
  74. b = coef(fit) # coefficients
  75. summary(fit)
  76. ```
  77. The code will be highlighted in all output formats.
  78. # And some pictures
  79. ```{r lm-vis, fig.cap='Regression diagnostics', fig.height=5}
  80. par(mfrow = c(2, 2), pch = 20, mar = c(4, 4, 2, .1), bg = 'white')
  81. plot(fit)
  82. ```
  83. # A little bit math
  84. Our regression equation is $Y=`r b[1]`+`r b[2]`x$, and the model is:
  85. $$ Y = \beta_0 + \beta_1 x + \epsilon$$
  86. # Pandoc extensions {.tabs}
  87. ## Definition lists
  88. Programmer
  89. : A programmer is the one who turns coffee into code.
  90. LaTeX
  91. : A simple tool that is nothing but a couple of backslashes.
  92. ## Examples
  93. We have some examples.
  94. (@) Think what is `0.3 + 0.4 - 0.7`. Zero. Easy.
  95. (@weird) Now think what is `0.3 - 0.7 + 0.4`. Still zero?
  96. People are often surprised by (@weird).
  97. ## Tables
  98. A table here.
  99. Table: Demonstration of simple table syntax.
  100. Right Left Center Default
  101. ------- ------ ---------- -------
  102. 12 12 12 12
  103. 123 123 123 123
  104. 1 1 1 1
  105. You can also generate tables easily using `knitr::kable()` or the **pander** package.
  106. ```{r}
  107. knitr::kable(head(iris))
  108. ```
  109. ## Footnotes
  110. We can also write footnotes[^1].
  111. [^1]: hi, I'm a footnote
  112. Or write some inline footnotes^[as you can see here].
  113. ## Citations
  114. We compile the R Markdown file to Markdown through **knitr** [@xie2015] in R [@R-base]. For more about @xie2015, see <http://yihui.name/knitr>.
  115. <div class="tabs is-left is-boxed is-fullwidth">
  116. <ul>
  117. <li class="is-active"><a>Pictures</a></li>
  118. <li><a>Music</a></li>
  119. <li><a>Videos</a></li>
  120. <li><a>Documents</a></li>
  121. </ul>
  122. </div>
  123. # References