From 8a0b0ef86779720e7cc4ab45aa16214debbafb97 Mon Sep 17 00:00:00 2001 From: schmic05 Date: Thu, 9 Jan 2020 17:32:56 +0100 Subject: [PATCH] Fixed small bug in LOLA function --- R/LMC_interpretation.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/LMC_interpretation.R b/R/LMC_interpretation.R index b3f1968..96f79b6 100644 --- a/R/LMC_interpretation.R +++ b/R/LMC_interpretation.R @@ -56,6 +56,11 @@ lmc.lola.enrichment <- function(medecom.result, assembly="hg19", lola.db=NULL){ #require("RnBeads") + if(!requireNamespace("LOLA")){ + if(!requireNamespace("BiocManager")) install.packages("BiocManager",repos="https://cloud.r-project.org/") + BiocManager::install("LOLA",dependencies=T) + if(!requireNamespace("simpleCache")) install.packages("simpleCache",repos="https://cloud.r-project.org/") + } require("LOLA") require("qvalue") rnb.mode <- F