knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Improving the track changes and reviewing experience in R markdown. reviewer
provides two main functions:
You can install the development version of reviewer
from GitHub with:
remotes::install_github("ropenscilabs/reviewer")
In order to use the annotation functionality it is needed to sign-up at the Hypothes.is website
The diff_rmd
function can be used to produce a nicely-formatted document showing the differences between two rmarkdown files. This function can be used to compare two files, or a file with previous versions of itself (within a git repository).
See the package vignette for a demonstration.
trackmd is similar to reviewer
, but:
is an RStudio-specific addin, whereas reviewer
can be used outside of the RStudio environment (e.g. with your preferred text editor)
shows changes only in the rendered rmarkdown file (i.e. once it has been converted to its HTML document format). reviewer
can show changes in either the raw rmarkdown document or its rendered output.
latexdiffr similarly shows differences in the rendered document, but uses the latexdiff
utility to do so (you need latexdiff
installed on your system to use it). It can also be used outside of RStudio.
diffobj provides a colourized depiction of the differences between arbitrary R objects. This could be used to compare two rmarkdown documents by e.g. reading their contents into character vectors and applying the diffChr
function.
rmdrive allows easy round-tripping of an rmarkdown document to Google Drive, where it can be edited by non-R-using collaborators, and back again. The edited changes could then be viewed using reviewer
.
markdrive is similar to rmdrive
, but pushes the rendered rmarkdown document to and from Google.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.