To install the package, run the following code for required dependencies and package.
= as.character(installed.packages()[,1])
all_packs = c("devtools","Rcpp","RcppArmadillo",
req_packs "Rmpfr","copula","ggplot2","viridis","smarter","dMrs")
= 0
run
for(pack in req_packs){
if( pack %in% all_packs ){
library(pack,character.only = TRUE)
next
}
if( pack == "smarter" ){
::install_github("pllittle/smarter")
devtools
else if( pack == "dMrs" ){
} ::install_github("reubenadat/dMrs")
devtools
else {
} install.packages(pack)
}= 1
run
}
if( run == 1 ) stop("Re-run this code")
Check out the vignette!
vignette("dMrs")
The package’s main functions include
Not done yet