knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Accessing templates


View the list of available journal names with rticles::journals().

Figure numbering & cross-references

You may want to use features of the bookdown package like automatic numbering and cross-referencing of figures and tables in your article. To do this, you'll need to follow bookdown documentation, i.e. to edit your YAML to:

output:
  bookdown::pdf_book:
    base_format: rticles::peerj_article

Read more about using the rticles package here: https://bookdown.org/yihui/rmarkdown/journals.html



rstudio/rticles documentation built on April 9, 2024, 10:51 p.m.