2017-05-18 2 views
0

In R 3.4.0 habe ich versucht, DADA2 zu installieren. Aber es funktioniert nicht ...Installation von dada2 funktioniert nicht

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

So habe ich versucht, diese (der Ordner dada2-1.4 ist in Tuto_DADA2) (I installiert RTools 3.4.0 zuerst)

> 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 

Dann habe ich versucht

> 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 

Aber weiß, ich weiß nicht, was ...

Dank zu tun!

EDIT: Ich weiß nicht, was ich getan habe, aber die Installation funktioniert, aber es gibt eine Fehlermeldung, wenn ich das Paket laden ...

> 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é 

Und wenn ich GenomeInfoDbData zu installieren versucht :

> 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 

Antwort

0

Der einfachste Weg, um das Paket zu installieren, ist mit ziemlicher Sicherheit über Bioconductor zu sein, der alle Abhängigkeitsmanagement behandelt und die Notwendigkeit, etwas zu kompilieren vermeidet.

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

Heute habe ich wieder versucht, und dieses Mal ist es Arbeit, ich weiß nicht, warum ... Aber wenn ich das Paket zu laden, gibt es ein Problem (siehe edit) – AntoineBic

+0

Meine Vermutung ist, dass Sie in laufen Irgendeine Art von Berechtigungsproblem bei Windows. Können Sie einen Blick auf die Vorschläge in diesem Thread werfen (einschließlich, als admin, Installation in einer frischen R Sitzung ohne geladene Pakete, vorübergehend deaktivieren Antivirus für die Installation und manuelle Installation von fehlerhaften Paketen) und sehen wenn sie für dich arbeiten? https://github.com/benjjneb/dada2/issues/242 – benjjneb

Verwandte Themen