This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problem installing R package with Bioconductor dependencies

I have made a package to which I call the QuasR package among others, therefore, I have put it both in the DESCRIPTION file and in the NAMESPACE file. The DESCRIPTION file is as follows:

LazyData: true

Imports: Rcpp, Biostrings, bedr, devtools, tidyverse, dplyr, phangorn, ggseqlogo, metan, ggpubr, scales, ggplot2

Enhances: parallel

Remotes: bioc::release/Rbowtie,bioc::release/QuasR,bioc::release/GenomicAlignments,bioc::release/Rhtslib, bioc::release/rtracklayer,bioc::release/ShortRead, bioc::release/BSgenome,bioc::release/GenomicFeatures, bioc::release/VariantAnnotation,bioc::release/GenomicFiles,bioc::release/dada2, bioc::release/QuasR

LinkingTo: Rcpp

RoxygenNote: 7.2.0

The problem is that when I Dokerize this package, the following error occurs:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘QuasR’

How can I call this package in the DESCRIPTION file? I tried to insert as Imported package, with the same result...

bioconductor r package

1 answer

Try to add a line with biocViews: before Imports: as suggested in this answer. Then you simply add the bioconductor libraries as Imports:

Sorry, I already have the line

biocViews: Software, Transcriptomics, Workflow

before Imports, but I did not add it here in the forum. Also, when I had the bioconductor packages normally in Imports, I got the error that these specific packages cannot be found.

I'm very curious to see what's wrong, because as I've seen in other Github repositories, they load packages normally in Imports.

Try removing the terms leaving only biocViews:

Thank you, it works!

Log in to answer this question.