installation path not writable R, unable to update packages

前端 未结 11 1795
轻奢々
轻奢々 2020-12-15 04:10

I am trying to install Bioconductor into R, using the code on their website. When I type in the code (see bellow) I get an error message saying that some packages can\'t be

11条回答
  •  生来不讨喜
    2020-12-15 04:52

    Since with the version of R 3.6.1 the script http://bioconductor.org/biocLite.R returns this message " Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install " I solved the problem with the following steps:

    1. Get the list of directories used by R to install libraries and choose the one with write permissions using: .libPaths()
    2. Installing the "BiocManager" library using: install.packages("BiocManager")
    3. Installation of the library "bioconductor" by forcing the directory with write permissions using: BiocManager::install("Rgraphviz", lib = "C:/Users/tizbet/Documents/R/win-library/3.6")

    I worked on the following R installation:

    platform x86_64-w64-mingw32, arch x86_64, os mingw32, system x86_64, mingw32, version.string R version 3.6.1 (2019-07-05)

    I was inspired by the Kasper Thystrup Karstensen answer

提交回复
热议问题