From fdf48f951a09f3dff89d49fa097322a9aec4ee27 Mon Sep 17 00:00:00 2001 From: Boyuan Ning <73546421+ningboyuan@users.noreply.github.com> Date: Sun, 13 Mar 2022 22:26:53 +0100 Subject: [PATCH] Update MVAsimdepex.r --- QID-2305-MVAsimdepex/MVAsimdepex.r | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/QID-2305-MVAsimdepex/MVAsimdepex.r b/QID-2305-MVAsimdepex/MVAsimdepex.r index edccb14..3847fa0 100644 --- a/QID-2305-MVAsimdepex/MVAsimdepex.r +++ b/QID-2305-MVAsimdepex/MVAsimdepex.r @@ -4,11 +4,17 @@ rm(list = ls(all = TRUE)) graphics.off() # install and load packages -libraries = c("depth", "localdepth") -lapply(libraries, function(x) if (!(x %in% installed.packages())) { - install.packages(x) -}) -lapply(libraries, library, quietly = TRUE, character.only = TRUE) +# libraries = c("depth", "localdepth") +# 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/localdepth") +library(localdepth) +install.packages("depth") +library(depth) # parameter settings set.seed(101)