Hi,
When I'm trying library (WGCNA)
I got this error
Loading required package: dynamicTreeCut
Loading required package: fastcluster
Attaching package: ‘fastcluster’
The following object is masked from ‘package:stats’:
hclust
Error: package or namespace load failed for ‘WGCNA’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘impute’
and before to get that I tried all this
install.packages("BiocManager")
BiocManager::install("WGCNA")
install.packages(c("matrixStats", "Hmisc", "splines", "foreach", "doParallel", "fastcluster", "dynamicTreeCut", "survival"))
biocLite(c("GO.db", "preprocessCore", "impute"))
install.packages("dynamicTreeCut")
install.packages("fastcluster")
packageDescription("WGCNA")[c("Depends", "Imports")]
"Depends"
"R (>= 3.0), dynamicTreeCut (>= 1.62), fastcluster"
"Imports"
"stats, grDevices, utils, matrixStats (>= 0.8.1), Hmisc,\nimpute, splines, foreach, doParallel, preprocessCore, survival,\nparallel, GO.db, AnnotationDbi"
BiocManager::install("Biobase")
BiocManager::install("GO.db")
install.packages("GO.db")
BiocManager::valid()
install.packages("RSQLite")
library(RSQLite)
install.packages("BiocManager")
library(BiocManager)
BiocManager::install("WGCNA")
install.packages("WGCNA")
library(WGCNA)
source(....I modified because I can't up more than two links in this foro)
biocLite("impute")
install.packages("GO.db")
install.packages("BiocManager")
BiocManager::install("WGCNA")
install.packages(c("matrixStats", "Hmisc", "splines", "foreach", "doParallel", "fastcluster", "dynamicTreeCut", "survival"))
source("https://bioconductor.org/install")
source("https://bioconductor.org/biocLite.R")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("GO.db")
if (!requireNamespace("BiocManager", quietly = TRUE))
BiocManager::install("impute")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("AnnotationDbi")
library(WGCNA)
BiocInstaller::biocLite(c("GenomicFeatures", "AnnotationDbi"))
BiocInstaller::biocLite(c("GO.db", "preprocessCore", "impute"))
library(WGCNA)