1
Github에서 블로터 및 퀀스트 패키지를 설치하는 데 어려움을 겪고 있습니다. 내가 온라인으로 찾을 수있는 대부분의 도움은 sourceforge에서 호스팅 될 때 꽤 오래된 것입니다. install_github() 함수를 사용하려고하면 아래 오류가 반환됩니다. (실제로 R-Forge를 시도 할 때 비슷한 오류가 있습니다.) 누군가 여기서 일어나는 일에 대한 단서를 제공 할 수 있습니까?GitHub에 블로터 및 퀀트 스트랩 설치
install_github("braverock/blotter")
Downloading GitHub repo braverock/[email protected]
from URL https://api.github.com/repos/braverock/blotter/zipball/master
Installing blotter
"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/User/AppData/Local/Temp/Rtmp8mMwyT/devtools416cfd229e7/braverock-blotter-bdefb02" \
--library="C:/Program Files/R/R-3.3.3/library" --install-tests
* installing *source* package 'blotter' ...
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c calcPosAvgCost.c -o calcPosAvgCost.o
make: sh.exe: Command not found
make: *** [calcPosAvgCost.o] Error 127
Warning: running command 'make -f "C:/PROGRA~1/R/R-33~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.3/share/make/winshlib.mk" SHLIB="blotter.dll" OBJECTS="calcPosAvgCost.o"' had status 2
ERROR: compilation failed for package 'blotter'
* removing 'C:/Program Files/R/R-3.3.3/library/blotter'
Error: Command failed (1)
Rtools 설치 및 PATH 변수에 포함 된
- C : \ RBuildTools 3.3 \ 빈 \
- C : \ RBuildTools 3.3 \ GCC-4.6.3 \ 빈
세션 정보 :
R version 3.3.3 (2017-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.12.0
loaded via a namespace (and not attached):
[1] httr_1.1.0 R6_2.1.2 tools_3.3.3 withr_1.0.2 curl_2.3
[6] memoise_1.0.0 git2r_0.14.0 digest_0.6.11
'sh.exe'의 위치를 알려주시겠습니까? 또한 PATH 변수가'c : \ RbuildTools' 인 동안'c : \ Rtools'를 검색하는 것처럼 보입니다. 이 올바른지? – ricoderks
C : \ RBuildTools \ 3.3 \ bin에 있습니다. 실제로 Rtools 3.3을 설치하고 Rtools 3.2를 제거했습니다 (3.3.3으로 R 버전을 업그레이드 할 때). 일부 오래된 Rtools 파일은 c : \ RbuildTools에 계속 존재합니다. 그러나 PATH 변수를 변경하여 새 디렉토리를 참조하고 이전 디렉토리를 제거했습니다. 그래도 나는 다른 것을 바꿀 필요가 있니? – user90957
업데이트 : 이전 Rtools 디렉토리를 제거한 후 작동했습니다. 저에게 올바른 길을 가르쳐 준 @ricoderks에게 많은 감사를드립니다. 여기에 도달 할 사람은 install_github ("joshuaulrich/xts")에 의해 xts 버전 0.10.0을 설치해야합니다. – user90957