2017-11-19 9 views
0

R에 quantstrat 패키지를 설치하려고합니다. 이미 quantstrat에 필요한 다른 패키지를 설치했는데, 아래는 내 세션 정보입니다.버전 3.4.2 용 quantstrat 설치 문제

install.packages("quantstrat", repos="https://github.com/braverock/quantstrat.git") 
Installing package into ‘C:/Users/augus/Documents/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    unable to access index for repository https://github.com/braverock/quantstrat.git/src/contrib: 
    cannot open URL 'https://github.com/braverock/quantstrat.git/src/contrib/PACKAGES' 
Warning in install.packages : 
    package ‘quantstrat’ is not available (for R version 3.4.2) 
Warning in install.packages : 
    unable to access index for repository https://github.com/braverock/quantstrat.git/bin/windows/contrib/3.4: 
    cannot open URL 'https://github.com/braverock/quantstrat.git/bin/windows/contrib/3.4/PACKAGES' 

나는 또한 그것을 이전 버전을 다운로드하고 설치하려고했지만 성공하지, 내가 따라와에서 그것을 가지고 : 나는 설치 패키지를 실행할 때

sessionInfo() 
R version 3.4.2 (2017-09-28) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 
Running under: Windows >= 8 x64 (build 9200) 

Matrix products: default 

locale: 
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C      
[5] LC_TIME=Portuguese_Brazil.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] blotter_0.12.4    PerformanceAnalytics_1.5.1 FinancialInstrument_1.2.0 foreach_1.4.3    quantmod_0.4-11   
[6] TTR_0.23-2     devtools_1.13.4   xts_0.10-0     zoo_1.8-0     lubridate_1.7.1   

loaded via a namespace (and not attached): 
[1] Rcpp_0.12.13  rstudioapi_0.7 knitr_1.17  magrittr_1.5  lattice_0.20-35 R6_2.2.2   quadprog_1.5-5 stringr_1.2.0 
[9] httr_1.3.1  tools_3.4.2  grid_3.4.2  git2r_0.19.0  withr_2.1.0  iterators_1.0.8 yaml_2.1.14  digest_0.6.12 
[17] codetools_0.2-15 curl_3.0   memoise_1.1.0 stringi_1.1.5 compiler_3.4.2 boot_1.3-20 

이 내가 무엇을 얻을 링크 :

http://download.r-forge.r-project.org/bin/windows/contrib/3.2/quantstrat_0.9.1739.zip

install.packages("C:/Users/augus/Dropbox/Trading/R/quantstrat_0.9.17392.zip", repos = NULL) 
Installing package into ‘C:/Users/augus/Documents/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    cannot open compressed file 'quantstrat/DESCRIPTION', probable reason 'No such file or directory' 
Error in install.packages : cannot open the connection 

누군가가 내가 뭘 잘못 알고 있나요?

감사 완전성에 대한 위의 설명에서 언급 한 바와 같이

아우

+0

는 당신이 봤어? '라이브러리 (devtools)' 'install_github ("braverock/quantstrat")' – FXQuantTrader

+0

효과가있었습니다! 감사합니다 – Augusto

답변

1

, 여기에 대한 답변입니다.

이 quantstrat의 최신 버전을 설치하는 가장 간단한 방법은 (R-단조에 quantstrat의 버전이 최신이 지금) DevTools로와 GitHub의 경유 :

library(devtools) 
install_github("braverock/quantstrat") 
+0

답변에 자세한 내용을 추가 할 수 있습니까? 귀하의 답변은 길이와 내용으로 표시되었습니다. – www139

+1

@ www1313 done ... – FXQuantTrader