This repo contains several macros that come up often in the work I do.
Documentation can be found here
None yet.
To install the latest development snapshot, type following commands into the R console
# install.packages('devtools')
devtools::install_github("markanewman/mnmacros")
library(mnmacros)
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.