Description
Create Tables, Listings and Figures using Functions Styled after SAS™ Macros.
Description
Mimic the style of traditional reporting macros for clinical trials. The purpose is to generate tables, listings and figures that support clinical research. This package is well suited for firms or individuals who wish to incorporate R without changing their ways of working as it follows a traditional clinical research workflow. Invoke functions (instead of macros) to summarize data and produce formatted reports. This package differs from others in that it includes tools (wrappers) for both analyzing and reporting data.
README.md
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.
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.
General Information
- 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
Built With
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.
Contact
For any questions or comments about this project, please contact Yongwei Wang or Chris Rook.
Acknowledgments
Acknowledgement to the following useful sources: