diff preprocess_datasets/Affymetrix_Preprocessing_Functions.R @ 15:4b3faf457c37 draft

Uploaded
author proteomisc
date Sun, 03 Dec 2023 16:14:11 +0000
parents ebf6607b4e6a
children 471c893de71f
line wrap: on
line diff
--- a/preprocess_datasets/Affymetrix_Preprocessing_Functions.R	Sun Dec 03 16:13:53 2023 +0000
+++ b/preprocess_datasets/Affymetrix_Preprocessing_Functions.R	Sun Dec 03 16:14:11 2023 +0000
@@ -22,7 +22,8 @@
   installed<-as.data.frame(installed.packages())
   lbraries=paste(annotation(data.sm),"db",sep='.')
   if(!lbraries%in%installed$Package){
-  biocLite(lbraries[!lbraries%in%installed$Package])}
+  suppressWarnings(suppressMessages(require("BiocManager", quietly = TRUE)))
+  BiocManager::install(lbraries[!lbraries%in%installed$Package])}
   
   suppressWarnings(suppressMessages(library(lbraries,character.only = TRUE)))