Learn R Programming

rjtools

The goal of rjtools is to make it easier for AUTHORS of R Journal articles to

  1. create a new paper from a template that will produce both html and pdf versions in the format needed by the journal, and
  2. to run various checks on their paper, that it satisfies various requirements, in preparation for submitting it to the journal.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("rjournal/rjtools")

Getting started with a new article

To create an article template under the project directory:

library(rjtools)
create_article(name = "quokka-bilby")

To examine how the papers in this format would look in an R Journal issue, take a look at the June 2021 issue https://journal.r-project.org/issues/2021-1/. Particularly articles by Wang, and two articles by Kane, and the editorial.

Checking that your paper satisfies various conditions

Explore the various check_XXX functions that will check the format of your article, and some submission requirements.

Current problem with pandoc

Please render the article using these lines:

pandoc::pandoc_activate(version = '3.1.6')
rmarkdown::render("quokka-bilby.Rmd", output_format = "all")

in your R Console. Also make sure the output in the yaml is set as:

output: 
  rjtools::rjournal_pdf_article:
    toc: no
  rjtools::rjournal_web_article:
    self_contained: yes
    toc: no

Copy Link

Version

Install

install.packages('rjtools')

Monthly Downloads

229

Version

1.0.18

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

January 23rd, 2025

Functions in rjtools (1.0.18)

rjtools-package

rjtools: Preparing, Checking, and Submitting Articles to the 'R Journal'
initial_check_article

A single article check
create_article

Create an R Journal article with the existing template
submit_rjournal

Submit a paper to the R Journal
prep_submission

Prepare pre-filled fields in the submission form prep_submission generate some answers based on the .tex file to fill the article submission form. You can save the answers if assigned it to an object.
rjournal_article

R Markdown output formats for R Journal articles
rjournal_pdf_issue

R Markdown output formats for R Journal issues
keywords

Keywords options for R Journal
log_error

Logging functions
rjournal_website

R Markdown site generator for the R Journal
symbol

Various handy symbols to use in a command line UI
zip_paper

Zip your directory for R Journal submission