skeleton.Rmd 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. ---
  2. title: Template for preparing your research report submission to Royal Society Open Science using RMarkdown
  3. author:
  4. - name: Alice Anonymous
  5. affiliation: "1,2"
  6. - name: Bob Security
  7. affiliation: "2"
  8. address:
  9. - code: "1"
  10. address: Some Institute of Technology, Department, Street, City, State, Zip
  11. - code: "2"
  12. address: Another University Department, Street, City, State, Zip
  13. corresp_author_name: "B. Security"
  14. corresp_author_email: "[email protected]"
  15. subject:
  16. - "subject 1"
  17. - "subject 2"
  18. - "subject 3"
  19. keywords:
  20. - one
  21. - two
  22. - optional
  23. - optional
  24. - optional
  25. abstract: |
  26. The abstract text goes here. The abstract text goes here. The abstract text goes here. The abstract text goes here. The abstract text goes here. The abstract text goes here. The abstract text goes here. The abstract text goes here.
  27. ## Remove this if not required
  28. ethics: |
  29. Please provide details on the ethics.
  30. data_accessibility: |
  31. Please provide details on the data availability.
  32. author_contributions: |
  33. Please provide details of author contributions here.
  34. ## Remove this if not required
  35. conflict_of_interest: |
  36. Please declare any conflict of interest here.
  37. ## Remove this if not required
  38. funding: |
  39. Please provide details on funding
  40. ## Remove this if not required
  41. disclaimer: |
  42. Please provide disclaimer text here.
  43. ## Remove this if not required
  44. acknowledgements: |
  45. Please include your acknowledgments here, set in a single paragraph. Please do not include any acknowledgments in the Supporting Information, or anywhere else in the manuscript.
  46. bibliography: sample.bib
  47. ## change to true to add optional line numbering
  48. lineno: false
  49. site: bookdown::bookdown_site
  50. output:
  51. bookdown::pdf_book:
  52. base_format: rticles::rsos_article
  53. ---
  54. # Insert A head here
  55. This demo file is intended to serve as a "starter file"" for articles submitted to the [Royal Society Open Science](http://rsos.royalsocietypublishing.org/) journal using `RMarkdown`.
  56. Place `\EndFirstPage` at the point where the plain text on the first page stops. Warning: excess text will be hidden behind the copyright box. The example below contains line 1 to 19 in the code. Lines 14 to 17 are hidden behind the copyright box.
  57. ## Insert B head here
  58. Subsection text here.
  59. ### Insert C head here
  60. Subsubsection text here.
  61. Line 1
  62. Line 2
  63. Line 3
  64. Line 4
  65. Line 5
  66. Line 6
  67. Line 7
  68. Line 8
  69. Line 9
  70. Line 10
  71. Line 11
  72. Line 12
  73. Line 13
  74. Line 14
  75. Line 15
  76. Line 16
  77. Line 17
  78. Line 18
  79. Line 19
  80. \EndFirstPage
  81. # Lists
  82. * one
  83. * two
  84. * three
  85. * fruits
  86. + apples
  87. - macintosh
  88. - red delicious
  89. + pears
  90. + peaches
  91. * vegetables
  92. + broccoli
  93. + chard
  94. ## Citations
  95. Blabla \cite{Lannes} blabla. Blabla \cite{HJ2} blabla. Blabla \cite{BF, Lannes} blabla. Blabla \cite{Benjamin1967, HJ2, HJ3, HP2} blabla.
  96. ### Headling level 3
  97. Subsubsection text here.
  98. # R code
  99. R code can be added as usual. Note that syntax highlighting is not available. Fig. \@ref(fig:nice-plot) is a an example.
  100. ```{r echo = TRUE}
  101. #23456789012345678901234567890123456789012345678901234567890123456789012345
  102. # 10 20 30 40 50 60 70
  103. summary(lm(mpg ~ disp, data = mtcars))
  104. ```
  105. ```{r}
  106. summary(mtcars)
  107. ```
  108. ```{r nice-plot, fig.cap="The caption"}
  109. plot(mtcars[, 1:3])
  110. ```