dewittpe / qwraps2

An updated version of qwraps with a focus on flexibility and general purpose. These functions are helpful for extracting and formatting results from R into .Rnw or .Rmd files. Additional functions for routine work such as extracting results from regression models or finding sensitivity and specificity.
http://www.peteredewitt.com/qwraps2/
GNU General Public License v3.0
37 stars 7 forks source link
cran r r-package

qwraps2

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check codecov

OpenSSF Best Practices

CRAN_Status_Badge CRAN RStudio mirror downloads CRAN RStudio mirror downloads

License minimal R version

A collection of helpful functions for summarizing data and formatting results. These or similar functions can be found in other R packages on github.com or on CRAN. However, this is a collection of methods I have generated to help with particular projects I have worked on over the last several years. Using my original qwraps package as the foundation, this work is aimed at simplicity and ease of use.

Some of the tools provided by qwraps2 are:


Contribute!

If you have a particular task or function used for data summaries or for reporting that you think would be helpful to include in this package please fork the repo, add the feature, and send me a pull request.

Building the package

Use the makefile. RStudio users, you will find a qwraps2.Rproj that will set the default to use the makefile in the build. My preferred IDE is neovim with the Nvim-R plug-in and I prefer to work on a Debian system. After cloning the repo, a simple call

make

will build the package. This includes generating man files via roxygen2, building the vignettes, and then building the package via R CMD build .. Passing arguments to R CMD build can be done too. For example, building the package without the vignettes is done via:

make build-options=--no-build-vignettes

Install

From CRAN

Download and install from The Comprehensive R Archive Network (CRAN).

install.packages("qwraps2", repo = "http://cran.rstudio.com")

Developmental

Install the development version of qwraps2 directly from github via the remotes package:

if (!("remotes" %in% rownames(installed.packages()))) {
  warning("installing remotes from https://cran.rstudio.com")
  install.packages("remotes", repo = "https://cran.rstudio.com")
}

remotes::install_github("dewittpe/qwraps2", build_vignettes = TRUE)

NOTE: If you are working on a Windows machine you will need to download and install Rtools.

Cloned repo

Install with GNU make

make install