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.

180 lines
3.8KB

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