if(requireNamespace("ggpubr",quietly = TRUE)) {
k = box_surv(log2(exp_hub1+1),exprSet_hub1,meta1);k[[1]]
}else{
warning("Package 'ggpubr' needed for this function to work.
Please install it by install.packages('ggpubr')")
}
Run the code above in your browser using DataLab