zhengxwen / SNPRelate

R package: parallel computing toolset for relatedness and principal component analysis of SNP data (Development version only)
http://www.bioconductor.org/packages/SNPRelate
98 stars 25 forks source link

Error during installation 3.13.2023 #100

Open bechee opened 1 year ago

bechee commented 1 year ago

I am having the error during installation. not sure what I am missing since I am using the BiocManager

if (!requireNamespace("BiocManager", quietly=TRUE))

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection In addition: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 2650112 != reported length 3040355 2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file 3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'gdsfmt/DESCRIPTION', probable reason 'No such file or directory'

BiocManager::install("SNPRelate") 'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details. Replacement repositories: CRAN: https://cran.rstudio.com/ Bioconductor version 3.14 (BiocManager 1.30.20), R 4.1.1 (2021-08-10) Installing package(s) 'SNPRelate' also installing the dependency ‘gdsfmt’

trying URL 'https://bioconductor.org/packages/3.14/bioc/bin/windows/contrib/4.1/gdsfmt_1.30.0.zip' Content type 'application/zip' length 3040355 bytes (2.9 MB) downloaded 2.9 MB

trying URL 'https://bioconductor.org/packages/3.14/bioc/bin/windows/contrib/4.1/SNPRelate_1.28.0.zip' Content type 'application/zip' length 3301488 bytes (3.1 MB) downloaded 3.1 MB

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection In addition: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 3031040 != reported length 3040355 2: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 3276800 != reported length 3301488 3: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file 4: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'gdsfmt/DESCRIPTION', probable reason 'No such file or directory'

library("SNPRelate") Error in library("SNPRelate") : there is no package called ‘SNPRelate’