R code, package incompatibility
1
0
Entering edit mode
12 months ago
Rob ▴ 170

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 
R install incompatible package • 644 views
ADD COMMENT
3
Entering edit mode
12 months ago
ATpoint 84k

Thr package is called ggpubr, so install that. Not ggpubr::ggscatter.

ADD COMMENT
0
Entering edit mode

I had to install another R version. Thank you ATpoint

ADD REPLY
0
Entering edit mode

but that's not what the error shows. the error is simply a non existing package due to wrong name.

ADD REPLY

Login before adding your answer.

Traffic: 2636 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6