Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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