repfun


R Reporting Functions
Repository
This repository contains an R package of reporting functions that
mimic (HARP) traditional macros for clinical reporting. The package can
be used to generate Tables, Listings and Figures. See several examples
in the
Vignettes/Articles.
(back to top)
How to Use This Package
- Download and install the package from CRAN (see below), or using the
zip file repfun_0.1.2.tar.gz (in “misc” branch), or via library remotes
(see below).
- Load the library in an R session.
- Review the function documentation under References
(https://gsk-biostatistics.github.io/repfun/reference/index.html).
- Identify a use case that fits your needs from the Articles
(https://gsk-biostatistics.github.io/repfun/articles/index.html).
- Copy and modify the Vignette code for your study.
(back to top)
- This package contains reporting functions that mimic (HARP)
traditional reporting macros.
- View the function documentation at:
https://gsk-biostatistics.github.io/repfun/reference/index.html
- Install the package using: Via CRAN: install.packages(“repfun”)
library(remotes); install_github(“GSK-Biostatistics/repfun”) or
install.packages(‘/your/path/repfun_0.1.2.tar.gz’,repos=NULL,type=‘source’)
(see “misc” branch for latest tarball) or download the following zip
file and install as above:
https://github.com/GSK-Biostatistics/repfun/blob/misc/repfun_0.1.2.tar.gz
- Use the package by loading it: library(repfun)
- View use cases at:
https://gsk-biostatistics.github.io/repfun/articles/
- View package documentation at:
https://github.com/GSK-Biostatistics/repfun/blob/misc/repfun_0.1.2.pdf
(back to top)
Built With
(back to top)
Getting Started
Prerequisites
# Before using repfun, install the following R packages:
install.packages(c("tidyr","dplyr","ggplot2","magrittr","Hmisc","haven","stringr","admiral","lubridate","r2rtf"))
License
This project is released under the Apache-2.0 license.
(back to top)
For any questions or comments about this project, please contact
Yongwei Wang
or
Chris Rook.
(back to top)
Acknowledgments
Acknowledgement to the following useful sources:
(back to top)