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.

225 lines
6.3KB

  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: '`r strftime(Sys.time(), "%A, %B %e, %Y")`'
  16. bulma:
  17. hero: ["dark", "bold"]
  18. hero_button: ["light", "outlined"]
  19. hero_links:
  20. - name: Github
  21. url: https://github.com/gerkelab
  22. icon: '`r bulma::fa_icon("github")`'
  23. - name: Home
  24. url: https://gerkelab.com
  25. icon: "fas fa-home"
  26. output:
  27. bulma::bulma_document:
  28. keep_md: TRUE
  29. toc: yes
  30. toc_depth: 2
  31. pandoc_args: ["--variable", "no-font-awesome"]
  32. # css: custom.css
  33. rmarkdown::html_document: default
  34. html_document_base:
  35. pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ]
  36. md_document: default
  37. bibliography: bibfile.bib
  38. ---
  39. ```{r setup, include=FALSE}
  40. knitr::opts_chunk$set(echo = TRUE)
  41. ```
  42. <!--
  43. <div class="level">
  44. <div class="level-item has-text-centered">
  45. <div>
  46. <p class="title is-5">Garrick Aden-Buie</p>
  47. <p class="subtitle is-6">Moffitt Cancer Center<br>&commat;grrrck<br>garrickadenbuie.com</p>
  48. </div>
  49. </div>
  50. <div class="level-item has-text-centered">
  51. <div>
  52. <p class="title is-5">Travis Gerke</p>
  53. <p class="subtitle is-6">Moffitt Cancer Center<br>&commat;travisgerke<br>travisgerke.com</p>
  54. </div>
  55. </div>
  56. </div>
  57. -->
  58. # Introduction
  59. A bit of an _introduction_ here. We no longer need to start an article by writing this:
  60. ```latex
  61. \documentclass{article}
  62. \begin{document}
  63. \end{document}
  64. ```
  65. # Bulma Tests
  66. ::::::{.columns}
  67. :::::{.column .is-half .is-offset-one-quarter}
  68. ::::{.message}
  69. :::{.message-header}
  70. This is just a test
  71. :::
  72. :::{.message-body}
  73. Things could change dramatically.
  74. :::
  75. ::::
  76. :::::
  77. ::::::
  78. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  79. `r bulma::bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")`
  80. # Start with a cool section
  81. You can use traditional **Markdown** syntax, such as [links](http://yihui.name/knitr) and `code`. Here is a quote:
  82. > A girl phoned me the other day and said "Come on over, there's nobody home." I went over. Nobody was home. -- Rodney Dangerfield
  83. # Followed by another section
  84. Of course you can write lists:
  85. - apple
  86. - pear
  87. - banana
  88. Or ordered lists:
  89. 1. items
  90. 1. will
  91. 1. be
  92. 1. ordered
  93. - nested
  94. - items
  95. # Okay, some R code
  96. ```{r linear-model}
  97. fit = lm(dist ~ speed + I(speed^2), data = cars)
  98. b = coef(fit) # coefficients
  99. summary(fit)
  100. ```
  101. The code will be highlighted in all output formats.
  102. # And some pictures
  103. ```{r lm-vis, fig.cap='Regression diagnostics', fig.height=5}
  104. par(mfrow = c(2, 2), pch = 20, mar = c(4, 4, 2, .1), bg = 'white')
  105. plot(fit)
  106. ```
  107. # A little bit math
  108. Our regression equation is $Y=`r b[1]`+`r b[2]`x$, and the model is:
  109. $$Y = \beta_0 + \beta_1 x + \epsilon$$
  110. ## Some math still has issues
  111. This is the equation for the PDF of the normal distribution.
  112. It currently isn't rendering correctly.
  113. $$\frac{1}{\sigma\sqrt{2\pi}}\,e^{ -\frac{(x-\mu)^2}{2\sigma^2} }$$
  114. # Pandoc extensions {.tabs}
  115. ## Definition lists
  116. Programmer
  117. : A programmer is the one who turns coffee into code.
  118. LaTeX
  119. : A simple tool that is nothing but a couple of backslashes.
  120. ## Examples
  121. We have some examples.
  122. (@) Think what is `0.3 + 0.4 - 0.7`. Zero. Easy.
  123. (@weird) Now think what is `0.3 - 0.7 + 0.4`. Still zero?
  124. People are often surprised by (@weird).
  125. ## Tables
  126. A table here.
  127. Table: Demonstration of simple table syntax.
  128. Right Left Center Default
  129. ------- ------ ---------- -------
  130. 12 12 12 12
  131. 123 123 123 123
  132. 1 1 1 1
  133. You can also generate tables easily using `knitr::kable()` or the **pander** package.
  134. ```{r}
  135. knitr::kable(head(iris))
  136. ```
  137. ## Sidenotes
  138. ```{r}
  139. bulma::bulma_sidenote(
  140. paste("Does your lorem ipsum text long for something a little meatier?",
  141. "Give our generator a try… it’s tasty!"),
  142. side = "left", color = "info")
  143. ```
  144. Drumstick flank swine fatback. Alcatra brisket pork chop picanha flank. Tenderloin pork loin t-bone tail ham short loin tri-tip turducken landjaeger chicken boudin corned beef turkey picanha biltong. Hamburger pastrami kevin pork belly tongue. Jowl meatball beef tail bresaola drumstick. Cow alcatra jowl pork chicken swine. Ball tip jerky pork loin cow flank.
  145. Bacon ipsum dolor amet salami ball tip meatball drumstick burgdoggen. Capicola pork chop tri-tip alcatra shoulder biltong ham. Shankle bresaola pork belly tri-tip pork loin, picanha rump ribeye beef ribs pork tongue hamburger. Filet mignon capicola pancetta jowl alcatra pastrami ribeye brisket rump chicken pork chop biltong ham drumstick. Pork chop doner shankle pastrami, ham hock ham cupim cow tenderloin pig biltong. Ground round beef ribs kielbasa ball tip tongue. Pastrami beef ribs buffalo brisket, tongue kevin turkey boudin shank fatback meatball andouille ribeye kielbasa.
  146. ```{r, echo=FALSE}
  147. bulma::bulma_sidenote(
  148. paste("Does your lorem ipsum text long for something a little meatier?",
  149. "Give our generator a try… it’s tasty!"),
  150. side = "right", color = "danger", size = "medium", header = "Bacon Ipsum")
  151. ```
  152. T-bone venison landjaeger burgdoggen, pork loin tenderloin buffalo doner shoulder fatback ribeye pig rump leberkas. Jowl andouille bacon chuck pig. Hamburger jerky andouille, boudin brisket shankle kielbasa pig strip steak burgdoggen ham hock. Shankle shoulder tenderloin pancetta pork loin, picanha meatloaf boudin salami doner sirloin ribeye pork chop pig ham. Meatloaf meatball turkey, ball tip ham drumstick short ribs pancetta pork beef short loin rump sausage. Frankfurter ground round spare ribs buffalo sirloin swine tenderloin brisket.
  153. ## Footnotes
  154. We can also write footnotes[^1].
  155. [^1]: hi, I'm a footnote
  156. Or write some inline footnotes^[as you can see here].
  157. ## Citations
  158. We compile the R Markdown file to Markdown through **knitr** [@xie2015] in R [@R-base]. For more about @xie2015, see <http://yihui.name/knitr>.
  159. <div class="tabs is-left is-boxed is-fullwidth">
  160. <ul>
  161. <li class="is-active"><a>Pictures</a></li>
  162. <li><a>Music</a></li>
  163. <li><a>Videos</a></li>
  164. <li><a>Documents</a></li>
  165. </ul>
  166. </div>
  167. # References