diff --git a/QID-1708-MVACARTBan2/MVACARTBan2.r b/QID-1708-MVACARTBan2/MVACARTBan2.r index c7ef1d2..25e2e79 100644 --- a/QID-1708-MVACARTBan2/MVACARTBan2.r +++ b/QID-1708-MVACARTBan2/MVACARTBan2.r @@ -4,11 +4,15 @@ rm(list = ls(all = TRUE)) graphics.off() # install and load packages -libraries = c("mvpart") -lapply(libraries, function(x) if (!(x %in% installed.packages())) { - install.packages(x) -}) -lapply(libraries, library, quietly = TRUE, character.only = TRUE) +# libraries = c("mvpart") +# lapply(libraries, function(x) if (!(x %in% installed.packages())) { +# install.packages(x) +# }) +# lapply(libraries, library, quietly = TRUE, character.only = TRUE) + +install.packages("devtools") +devtools::install_github("cran/mvpart") +library(mvpart) # load data x = read.table("bankruptcy.dat")