The MIRA package aggregates DNA methylation across the genome for instances of a genomic feature like histone ChIP peaks, transcription factor ChIP peaks, or open chromatin regions in order to give a single signature and score for that feature, which may be used to infer regulatory activity.
MIRA may be installed from Github:
devtools::install_github("databio/MIRA")
or locally after downloading/cloning the source code:
install.packages("path/to/MIRA/directory", repos=NULL, type="source")