you may need to mkdir -p ~/R/library if it complained that the folder does not exists.
• 1 views
•
link
I follow the instruction from https://www.bioconductor.org/install/. But I got error as following
> source("http://bioconductor.org/biocLite.R")
Warning in install.packages("BiocInstaller", repos = a["BioCsoft", "URL"]) :
'lib = "/share/apps/R/3.1.1/intel/2013.0.028/lib64/R/library"' is not writable
Error in install.packages("BiocInstaller", repos = a["BioCsoft", "URL"]) :
unable to install packages
Calls: source ... eval.parent -> eval -> eval -> eval -> eval -> install.packages
Execution halted
Can someone help me here?
'lib = "/share/apps/R/3.1.1/intel/2013.0.028/lib64/R/library"' is not writable
Obviously, you don't have the permission to install package to the R library folder.
add the following lines to ~/.Renviron: R_LIBS_USER='~/R/library'
try again:
source("https://bioconductor.org/biocLite.R")
biocLite("snpStats")
You should be able to install any package you want.
you may need to mkdir -p ~/R/library if it complained that the folder does not exists.
With the latest update you have to do the same but install BiocManager : This is done only for version R > 3.4
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install()
and then :
BiocManager::install(c("snpStats"))
works for now
Thanks for the answers, I found another solution by myself:
install.packages(file.choose(), repos = NULL, type="source") # choose zipfile downloadedLog in to answer this question.
Follow this:
Dear gemini,
sorry but that doesn't work for R 3.6.1
One thing you could try is getting used to conda. Conda lets you manage many different environments with different versions of R. Usually installing packages are as simply as
conda install [package]'. When using a new package the first thing I do these days is to look and see if it is install-able with condahttps://anaconda.org/bioconda/bioconductor-snpstats