This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I uninstall my packages in Rstudio

I want to uninstall Bioconductor affycoretools package and reinstall it, who can help me?

r bioconductor

You can try to update the already existing package.

2 answers

Remove a package with remove.packages() e.g.

remove.packages("affycoretools")

Affycoretools is a Bioconductor pacakge, so reinstallation needs their install script / the BiocInstaller package e.g.

source("https://bioconductor.org/biocLite.R")
biocLite("affycoretools")

Edit: To install this package, start R (version "4.0") and enter:

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

BiocManager::install("affycoretools")

Oh my bad! Thanks for the correction

you may like to move that to an answer

Go to the Packages in right bottom corner of Rstudio, sear the package name and click on the adjacent X icon to remove it.

Rstudio Screenshot

Reinstall the package from Bioconductor/CRAN.

##Bioconductor
source("https://bioconductor.org/biocLite.R")
biocLite("affycoretools")

Log in to answer this question.