Entering edit mode
I am trying to install the bioconductor but i am encounter with this problem. Please suggest for solution
> if (!require("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
Bioconductor version 3.18 (BiocManager 1.30.22), R 4.3.2 (2023-10-31)
> BiocManager::install()
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories",
package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
Bioconductor version 3.18 (BiocManager 1.30.22), R 4.3.2 (2023-10-31)
Installation paths not writeable, unable to update packages
path: /usr/lib/R/library
packages:
boot, Matrix, nlme, spatial
The /usr/lib directory requires special privileges to make any changes. Likely R was installed with root , so if you do not have root or sudo privileges, you won't be able to make any modifications to files in that location. These are recommended packages that come with R, you should be able to still install other Bioconductor packages in a user defined location that can install and be updated. Do you get an ERROR trying to install a specific package?
I am getting this error in installing every package rather from CRAN repository
Please google
Installation paths not writeable, unable to update packages R
. The first link on StackOverflow will tell you how to deal with it. Essentially, you need to tell R to which directory it shall write your packages and it must be one that you have write access to.