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.

184 satır
3.9KB

  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. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  64. `r bulma::bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")`
  65. A bit of an _introduction_ here. We no longer need to start an article by writing this:
  66. ```latex
  67. \documentclass{article}
  68. \begin{document}
  69. \end{document}
  70. ```
  71. # Start with a cool section
  72. You can use traditional **Markdown** syntax, such as [links](http://yihui.name/knitr) and `code`. Here is a quote:
  73. > A girl phoned me the other day and said "Come on over, there's nobody home." I went over. Nobody was home. -- Rodney Dangerfield
  74. # Followed by another section
  75. Of course you can write lists:
  76. - apple
  77. - pear
  78. - banana
  79. Or ordered lists:
  80. 1. items
  81. 1. will
  82. 1. be
  83. 1. ordered
  84. - nested
  85. - items
  86. # Okay, some R code
  87. ```{r linear-model}
  88. fit = lm(dist ~ speed + I(speed^2), data = cars)
  89. b = coef(fit) # coefficients
  90. summary(fit)
  91. ```
  92. The code will be highlighted in all output formats.
  93. # And some pictures
  94. ```{r lm-vis, fig.cap='Regression diagnostics', fig.height=5}
  95. par(mfrow = c(2, 2), pch = 20, mar = c(4, 4, 2, .1), bg = 'white')
  96. plot(fit)
  97. ```
  98. # A little bit math
  99. Our regression equation is $Y=`r b[1]`+`r b[2]`x$, and the model is:
  100. $$ Y = \beta_0 + \beta_1 x + \epsilon$$
  101. # Pandoc extensions {.tabs}
  102. ## Definition lists
  103. Programmer
  104. : A programmer is the one who turns coffee into code.
  105. LaTeX
  106. : A simple tool that is nothing but a couple of backslashes.
  107. ## Examples
  108. We have some examples.
  109. (@) Think what is `0.3 + 0.4 - 0.7`. Zero. Easy.
  110. (@weird) Now think what is `0.3 - 0.7 + 0.4`. Still zero?
  111. People are often surprised by (@weird).
  112. ## Tables
  113. A table here.
  114. Table: Demonstration of simple table syntax.
  115. Right Left Center Default
  116. ------- ------ ---------- -------
  117. 12 12 12 12
  118. 123 123 123 123
  119. 1 1 1 1
  120. You can also generate tables easily using `knitr::kable()` or the **pander** package.
  121. ```{r}
  122. knitr::kable(head(iris))
  123. ```
  124. ## Footnotes
  125. We can also write footnotes[^1].
  126. [^1]: hi, I'm a footnote
  127. Or write some inline footnotes^[as you can see here].
  128. ## Citations
  129. We compile the R Markdown file to Markdown through **knitr** [@xie2015] in R [@R-base]. For more about @xie2015, see <http://yihui.name/knitr>.
  130. <div class="tabs is-left is-boxed is-fullwidth">
  131. <ul>
  132. <li class="is-active"><a>Pictures</a></li>
  133. <li><a>Music</a></li>
  134. <li><a>Videos</a></li>
  135. <li><a>Documents</a></li>
  136. </ul>
  137. </div>
  138. # References