Generation of .rd reports

To generate a HTML or PDF file:

Generating plots requires the following packages in R:

The packages can be installed in an R console with the following instructions:

install.packages("bit64", "tidyverse", "ggExtra", "plotly", "data.table", "cowplot", "ggnewscale", "gridExtra", "gtable")

Generating a PDF file requires installing a LaTeX distribution such as TinyTeX. TinyTeX can be installed using the following commands:

install.packages("tinytex")
tinytex::install_tinytex()

Please note that only static plots can be rendered in PDF format. generate_report.sh will auomatically generate a HTML file if given “-f pdf” and “–interactive” as arguments.

The usage is as follows:

generate_report.sh -i input1.rd [input2.rd ...] -o output_file [--interactive] [-h]

Arguments:
-i, --input     Input rd file(s)
-o, --output    Output filename (must end in .html or .pdf)
--interactive   Enable interactive plotting, only supported in html (default: static)
-h, --help      Show help