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

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