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

187 lines
4.1KB

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