Format for creating R Journal articles. Adapted from https://journal.r-project.org/submissions.html.

rjournal_article(..., keep_tex = TRUE, citation_package = "natbib")

Arguments

...

Arguments to rmarkdown::pdf_document().

keep_tex

Keep the intermediate tex file used in the conversion to PDF

citation_package

The LaTeX package to process citations, natbib or biblatex. Use default if neither package is to be used, which means citations will be processed via the command pandoc-citeproc.

Details

This file is only a basic article template. For full details of The R Journal style and information on how to prepare your article for submission, see the Instructions for Authors

About this format and the R Journal requirements

rticles::rjournal_article will help you build the correct files requirements:

  • A R file will be generated automatically using knitr::purl - see https://bookdown.org/yihui/rmarkdown-cookbook/purl.html for more information.

  • A tex file will be generated from this Rmd file and correctly included in RJwapper.tex as expected to build RJwrapper.pdf.

  • All figure files will be kept in the default rmarkdown *_files folder. This happens because keep_tex = TRUE by default in rticles::rjournal_article

  • Only the bib filename is to be modified. An example bib file is included in the template (RJreferences.bib) and you will have to name your bib file as the tex, R, and pdf files.

About YAML header fields

This section documents some of the YAML fields that can be used with this formats.

The author field in the YAML header

FIELDTYPEDESCRIPTION
namerequiredname and surname of the author
affiliationrequiredname of the author's affiliation
addressrequiredat least one address line for the affiliation
urloptionalan additional url for the author or the main affiliation
orcidoptionalthe authors ORCID if available
emailrequiredthe author's e-mail address
affiliation2optionalname of the author's 2nd affiliation
address2optionaladdress lines belonging to the author's 2nd affiliation

Please note: Only one url, orcid and email can be provided per author.

The author field in the YAML header

FIELDTYPEDESCRIPTION
namerequiredname and surname of the author
affiliationrequiredname of the author's affiliation
addressrequiredat least one address line for the affiliation
urloptionalan additional url for the author or the main affiliation
orcidoptionalthe authors ORCID if available
emailrequiredthe author's e-mail address
affiliation2optionalname of the author's 2nd affiliation
address2optionaladdress lines belonging to the author's 2nd affiliation

Please note: Only one url, orcid and email can be provided per author.

The author field in the YAML header

FIELDTYPEDESCRIPTION
namerequiredname and surname of the author
affiliationrequiredname of the author's affiliation
addressrequiredat least one address line for the affiliation
urloptionalan additional url for the author or the main affiliation
orcidoptionalthe authors ORCID if available
emailrequiredthe author's e-mail address
affiliation2optionalname of the author's 2nd affiliation
address2optionaladdress lines belonging to the author's 2nd affiliation

Please note: Only one url, orcid and email can be provided per author.

Other YAML fields

FIELDTYPEDESCRIPTION
bibliographywith defaultthe BibTeX file with the reference entries