Entering edit mode
                    2.3 years ago
        Rob
        
    
        ▴
    
    180
    Hi guys I got this error. what is the best approach if we could not install a package using BiocManager? Is there a better way than installing a new version of R?
Here is the code I ran:
BiocManager::install("ggpubr::ggscatter")
library(ggpubr)
library("ggplot2")
ggscatter(ex, x = "SM", y = "exprs",
          add = "reg.line",                         
          add.params = list(color = "blue", fill = "lightgray"),
          color = "black", palette = "jco", fill = "lightgray",          
          #shape = "cyl",                            
          fullrange = TRUE,                       
          rug = TRUE, facet.by = "gene", cor.coef = T,
          title = "Correlation Plot",
          conf.int = TRUE, 
          cor.coeff.args = list(),
          cor.method = "spearman",
          cor.coef.coord = c(NULL, NULL),
          cor.coef.size = 4,                               
)+
  geom_vline(xintercept = 157.5, colour="red", linetype = "longdash")
here is the error"
Warning message:
package ‘ggpubr::ggscatter’ is not available for Bioconductor version '3.16'
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 
I had to install another R version. Thank you ATpoint
but that's not what the error shows. the error is simply a non existing package due to wrong name.