Generation of .rd reports
To generate a HTML or PDF file:
Generating plots requires the following packages in R:
bit64, (v4.5.2+)
tidyverse, (v2.0.0+)
ggExtra, (v0.10.1+)
plotly, (v4.10.4+)
data.table, (v1.17.8+)
cowplot, (v1.2.0+)
ggnewscale, (v0.5.2+)
gridExtra, (v2.3+)
gtable, (v0.3.6+)
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