2017-05-18 23 views
0

R 3.4.0에서 DADA2를 설치하려고했습니다. 그러나 (내가 처음 Rtools 3.4.0 설치) dada2 설치가 작동하지 않습니다.

> install.packages("~/Tuto_DADA2", repos = NULL, type = "source", dependencies = c("Depends", "Suggests","Imports")) 
'\\CXXXW0001\Users\RXXXAn\Tuto_DADA2' 
CMD.EXE was started with the above path as the current directory. 
UNC paths are not supported. Defaulting to Windows directory. 
'\\CXXXW0001\Users\RXXXAn\R\R-3.4.0' is not recognized as an internal or external command, 
operable program or batch file. 
Warning in install.packages : 
    running command '"//CXXXW0001/Users/RXXXAn/R/R-3.4.0/bin/x64/R" CMD INSTALL -l "\\CXXXW0001\Users\RXXXAn\R\R-3.4.0\library" "//CXXXW0001/Users/RXXXAn/Tuto_DADA2"' had status 1 
Warning in install.packages : 
    installation of package ‘//CXXXW0001/Users/RXXXAn/Tuto_DADA2’ had non-zero exit status 

가 그럼 난

을 시도
> library("devtools") 
> devtools::install_github("benjjneb/dada2") 
Installation failed: Timeout was reached 

그래서 나는이 (폴더 dada2-1.4이 Tuto_DADA2에) 시도 ... 작동하지 않습니다
> install.packages("https://www.bioconductor.org/packages/release/bioc/src/contrib/dada2_1.4.0.tar.gz", repos = NULL, type="source") 
trying URL 'https://www.bioconductor.org/packages/release/bioc/src/contrib/dada2_1.4.0.tar.gz' 
Content type 'application/x-gzip' length 1709035 bytes (1.6 MB) 
downloaded 1.6 MB 

'\\CXXXW0001\Users\RXXXAn\Tuto_DADA2' 
CMD.EXE was started with the above path as the current directory. 
UNC paths are not supported. Defaulting to Windows directory. 
'\\CXXXW0001\Users\RXXXAn\R\R-3.4.0' is not recognized as an internal or external command, 
operable program or batch file. 
Warning in install.packages : 
    running command '"//CXXXW0001/Users/RXXXAn/R/R-3.4.0/bin/x64/R" CMD INSTALL -l "\\CXXXW0001\Users\RXXXAn\R\R-3.4.0\library" "C:/Users/RXXXH~1/AppData/Local/Temp/RtmpGW3jsa/downloaded_packages/dada2_1.4.0.tar.gz"' had status 1 
Warning in install.packages : 
    installation of package ‘C:/Users/RXXXH~1/AppData/Local/Temp/RtmpGW3jsa/downloaded_packages/dada2_1.4.0.tar.gz’ had non-zero exit status 

하지만 ... 어떻게 해야할지 모르겠어요,

감사를 알고있다!

편집 : 나는 GenomeInfoDbData를 설치하려고 할 때 나는 ... 나는 패키지를로드 할 때 오류 메시지가 내가 무슨 짓을했는지 있지만 설치 작동하지만

> library(dada2) 
Error: package or namespace load failed for ‘dada2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): 
aucun package nommé ‘GenomeInfoDbData’ n'est trouvé 

을 알고 그리고하지 않습니다 :

> source("http://bioconductor.org/biocLite.R") 
Bioconductor version 3.5 (BiocInstaller 1.26.0), ?biocLite for help 
> biocLite("GenomeInfoDbData") 
BioC_mirror: https://bioconductor.org 
Using Bioconductor 3.5 (BiocInstaller 1.26.0), R 3.4.0 (2017-04-21). 
Installing package(s) ‘GenomeInfoDbData’ 
installing the source package ‘GenomeInfoDbData’ 

trying URL 'https://bioconductor.org/packages/3.5/data/annotation/src/contrib/GenomeInfoDbData_0.99.0.tar.gz' 
Content type 'application/x-gzip' length 16238792 bytes (15.5 MB) 
downloaded 15.5 MB 

'\\CXXXW0001\Users\RXXXAn\Tuto_DADA2' 
CMD.EXE was started with the above path as the current directory. 
UNC paths are not supported. Defaulting to Windows directory. 
'\\CXXXW0001\Users\RXXXAn\R\R-3.4.0' is not recognized as an internal or external command, 
operable program or batch file. 

The downloaded source packages are in 
    ‘C:\Users\RXXXAn\AppData\Local\Temp\RtmpOqOI3E\downloaded_packages’ 
Old packages: 'DelayedArray', 'GenomeInfoDb', 'GenomicRanges', 'IRanges', 'S4Vectors', 'SummarizedExperiment', 'tibble' 
Update all/some/none? [a/s/n]: 
n 
Warning messages: 
1: running command '"//CXXXW0001/Users/RXXXAn/R/R-3.4.0/bin/x64/R" CMD INSTALL -l "\\CXXXW0001\Users\RXXXAn\R\R-3.4.0\library" C:\Users\RXXXH~1\AppData\Local\Temp\RtmpOqOI3E/downloaded_packages/GenomeInfoDbData_0.99.0.tar.gz' had status 1 
2: In install.packages(pkgs = doing, lib = lib, ...) : 
    installation of package ‘GenomeInfoDbData’ had non-zero exit status 

답변

0

패키지를 설치하는 가장 쉬운 방법은 모든 종속성 관리를 처리하고 아무것도 컴파일 할 필요가 피할 수있는 Bioconductor 통해로 거의 확실하다.

source("https://bioconductor.org/biocLite.R") 
biocLite("dada2") 
+0

오늘은 - 시도 다시이 시간은 작업의 (편집 참조), 나는 이유를 알고하지 않습니다 ...하지만 패키지를로드 할 때, 문제가 – AntoineBic

+0

내 생각 엔 당신이로 실행하는 것입니다 어떤 종류의 사용 권한 문제는 Windows에서 발생합니다. 이 스레드의 제안 사항 (admin으로 실행,로드 된 패키지가없는 새로운 R 세션에 설치, 설치를 위해 바이러스 백신을 일시적으로 끄는 것, 실패한 패키지를 수동으로 설치하는 것 포함)을 살펴보고 그들이 당신을 위해 일한다면? https://github.com/benjjneb/dada2/issues/242 – benjjneb