README.md

mnmacros

Travis-CI Build Status Coverage Status

This repo contains several macros that come up often in the work I do.

Documentation

Documentation can be found here

Installation

Official, stable release

None yet.

Latest development build

To install the latest development snapshot, type following commands into the R console

# install.packages('devtools')
devtools::install_github("markanewman/mnmacros")
library(mnmacros)

Rebuild from scratch

  1. Clone the repo from GitHub
    • I suggest to C:\repos\mnmacros
  2. Open up R Studio
  3. Run the below code to recompile everything
# install libraries (if needed)
# install.packages('devtools')
# install.packages('roxygen2')
# install.packages('pkgdown')

# set working directory and clean files that will be regenerated
setwd("C:/repos/mnmacros")
unlink(c("./data/*", "./docs/*", "./man/*", "./NAMESPACE"), recursive = T)

# recompile the test data
testthat::source_dir('./data-raw')

# regenerate NAMESPACE
devtools::document()

# run the tests
devtools::test()

# add in github pages
pkgdown::build_site()

# full check before the package is CRAN ready
devtools::check()


markanewman/AnalysisMacros documentation built on May 22, 2019, 2:41 p.m.