Hi,
I am trying to install WCGNA (1.67) package in R 3.6.0 and have not been successful in doing so. First, I tried to install Bioconductor -
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager") BiocManager::install()
This was the output for the above command -
Bioconductor version 3.9 (BiocManager 1.30.4), R 3.6.0 (2019-04-26)
Installing package(s) 'BiocVersion'
I first tried automatic installation of WCGNA using the command BiocManager::install("WCGNA")
but got the following warning message -
Warning message:
package ‘WCGNA’ is not available (for R version 3.6.0)
Then I tried manual installation of WCGNA using the command - install.packages("WCGNA", repos = NULL, lib=.Library)
. This was the error message that I got -
Error in install.packages("WCGNA", repos = NULL, lib = .Library) :
type == "both" cannot be used with 'repos = NULL' .
I am not sure I understand this error message.
I also tried installing WCGNA in R 3.5 but I am getting the same error message that package WCGNA is not available
. I do not know where I am going wrong and it would be of great help if you can help me with this. I am using Windows computer.
Thank you very much
Please read the how-to on post types. This is a
Question
, not aTool
.I'm making the necessary change now, but please be more careful in the future. Also, please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.The error message are clear - please read them and Google them (and read the manual as well). The package is not yet available for R 3.6.0 and you cannot use
install.packages(..., type="both",...)
(probably picked by default in your case) when you userepos = NULL
. Trytype='source'
instead.Thank you very much for your reply. I tried uninstalling R and reinstalled R 3.5.1. I then tried automatic installation of WCGNA using the following commands :
This was the output -
However, when I gave the command -
library(WCGNA)
, I got the following error message -Error in library(WCGNA) : there is no package called ‘WCGNA’
I did not change any default parameters and installed in the default folder in Windows OS.
I also tried manual installation of WCGNA but I got the following error message -
I am the administrator for the system and I don't quite understand where exactly I am going wrong. It would be of tremendous help if you can help me in this regard.
successfully unpacked
is notsuccessfully installed
. Can you please paste the full output ofinstall.packages("BiocManager"); BiocManager::install("WGCNA")
?If your R was installed and is managed by conda, I've seen many package installations fail. The way to install them if you're using conda would be to search for the package and install it using conda. In this case, that would be
conda install -c bioconda r-WGCNA
Also, the command
install.packages('<path_to_a_zip_file>, ...)
does not make sense to me, given thatinstall.packages
expects package names, not a string it cannot decipher as a package name.Hi,
I'm using Windows OS. So I don't think I use conda. I'm not sure though. I tried installing R 3.4.3 and bioconductor 3.6. I then tried installing WCGNA and following is the output:
I am getting the same error message no matter what version of R i install. Should I do something different ? Thank you so much.
OS has nothing to do with
conda
. In fact, ease of use across OS's is one of the reasons to use conda. Also, you have a typo: It'sWGCNA
, notWCGNA
:-)Hi,
Thank you very much for your reply. I am not familiar with conda and also not quite well versed with R. I am learning how to do analysis using R. Would it be possible for you to explain what I have to do. Should I download something for this ?
Did you try
biocLite('WGCNA')
?Yes. I tried biocLite('WCGNA') and I am getting the same output :
Please see my command and compare it to yours. Like I mentioned in my previous comment, you have a typo
Even here, the error happens because you're using
library(WCGNA)
after installingWGCNA
. I thought the typos were being made here on the site and not in your command line, but I guess I was mistaken. Sorry about that!Thank you very much for pointing out the typo . I rectified the error and it is now working . I was able to do the analysis without any problem. Thank you so very much for your help and patience :)