This vignette illustrates the use of the respondR package for writing responses to peer-review comments.

Rationale

Responding to comments on a manuscript is an essential yet sometimes daunting part of the peer-review process, particularly as clear and well-crafted responses are often tedious to formulate but can go a long way towards ensuring acceptance. respondR was designed to take away some of that strain by providing a user-friendly RMarkdown template that can produce professional-looking and consistently formatted response documents --- encouraging authors to focus on content rather than style.

In particular, respondR conforms to best practice rules for academic peer-reviewing [@Noble2017], and facilitates the tasks of:

Installation

The package can be installed using the following command:

# install.packages("remotes")
remotes::install_github("pjbouchet/respondR")

respondR is built around two core files:

The idea is to write up responses to reviewer comments in Word using the provided template, and subsequently generate a formatted PDF directly from within RStudio.

After installation, follow these simple steps:

Figure 1. Creating a new file.{width="400"}

Figure 2. Knitting the RMarkdown file.{width="500"}

This will generate a Microsoft Word document entitled response_template.docx in the same directory as the current RMarkdown file (by default, when using RStudio). If desired, users can specify a file name and output directory by replacing the appropriate values in the first R code chunk, as shown below.

Figure 3. Custom file name and output directory.{width="450"}

Writing responses

The Word template consists of several tables, to be filled in by the authors.

Each table corresponds to either an Editor or a Reviewer. By default, respondR assumes that the article was handled by a single editor and two reviewers (i.e., a total of three tables). The table type is indicated in the header of the left-most column. Tables can be copied/pasted or deleted as necessary to match the correct number of editors/reviewers on a specific article.

Each table consists of the following columns:

The below illustrates the range of outputs produced by respondR for different combinations of entries:

| Action | As_is | Extra | PDF output | |----------------|------------------------------|------------------------|--------------------------------------------| | <blank> | <blank> | <blank> | No edits required ✓ | | NA ^(1)^ | <blank> | <blank> | No action taken (text unchanged) x | | Revised | <blank> or yes ^(2)^ | <blank> | Revised, as suggested ✓ | | Revised | No ^(3)^ | <blank> | Revised, with additional edits ✓ | | Revised | No ^(3)^ | e.g., updated metadata | Revised + updated metadata ✓ | | Revised | <blank> or yes ^(2)^ | e.g., updated metadata | Revised, as suggested + updated metadata ✓ |

^(1)^ or: n/a, na, N/A, Not applicable, not applicable, Not Applicable

^(2)^ or: Yes, yes, YES, Y, y, true, TRUE

^(3)^ or: no, N, NO, FALSE, false\

respondR also contains functions to compare text excerpts and identify differences between them. This can be used to highlight revisions made on specific sentences or paragraphs.

Finally, the last table in the template is a single-column table used for referencing, should any literature be cited within the response document. If none are used, this table should be left blank. Users are free to rely on any Word-compatible reference management software of their choosing (e.g., Mendeley, Endnote, Zotero, PaperPile). Note, however, that references must be flattened before knitting, as reference fields will otherwise be imported as text and will mess with the output.

Once the response text is finalised, go back to RStudio and knit the RMarkdown file to generate a formatted PDF ready for submission to the journal.

Customisation options

respondR offers a number of options for customising the look and feel of the final PDF.

Figure 4. Author list and manuscript details.{width="400"}

Figure 5. Custom colour scheme.{width="150"}

In addition, the second R code chunk offers the below options:

References



pjbouchet/respondR documentation built on Feb. 7, 2023, 9:40 a.m.