Error using simpleaffy

I have installed simpleaffy package, then when I try to use it appears an error.

library(simpleaffy)
Loading required package: genefilter
Error: package or namespace load failed for ‘genefilter’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘XML’
Error: package ‘genefilter’ could not be loaded

And when I charge the package genefilter:

library(genefilter)
Error: package or namespace load failed for ‘genefilter’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘XML’

I don't know how to fix this error

Have you tried reinstalling genefilter?

The package is on Bioconductor, so you'd use:

## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("genefilter")

It's also worth noting that Bioconductor also has a support/Discourse site where you might ask, if you don't find the help you need here.

https://support.bioconductor.org/

Thanks to answer, but now I have another problem; when I writte your text in the command line it appears another error.

source("https://bioconductor.org/biocLite.R")
Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install
biocLite("genefilter")
Error in biocLite("genefilter") : could not find function "biocLite"

but I have already installed the Bioconductor packages using BiocManager

Whoops. I had pulled that straight from the vignette. What happens when you do:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("genefilter")

Okey, thanks to answer

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.