교수님,
오랜만에 rstudio로 Rmd 문서를 작성하고 있는데
ggBar 같이 ggiraphExtra에 있는 함수를 작성하고 실행시키면
Error in .subset2(x, i, exact = exact) : no such index at level 1
이라는 에러메세지가 계속 뜹니다.
작년에 작성하고 실행이 제대로 되었던 RMD문서에 있는
ggBar함수도, 지금 다시 실행시켜보니 똑같은 메시지가 뜹니다
교수님 데이터인 acs를 사용해서 web rstudio에서 실행해보아도
같은 현상이 나타나네요..
교수님께서도 이런 메시지가 뜨는지요?
구글 검색해도 나오지 않아 질문드립니다
에러메시지 뜬 화면 캡쳐하여 첨부합니다
Comment 4
-
cardiomoon
2018.10.30 08:12
-
스튜던트
2018.10.30 15:02
답변 감사드립니다. 교수님
그런데 ggiraphExtra 설치시 에러 메시지가 납니다
> devtools::install_github("cardiomoon/ggiraphExtra") Downloading GitHub repo cardiomoon/ggiraphExtra@master Installing 2 packages: ggforce, units Installing packages into ‘/home/gogo930/R/x86_64-redhat-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) URL 'https://cran.rstudio.com/src/contrib/ggforce_0.1.3.tar.gz'을 시도합니다 Content type 'application/x-gzip' length 1489319 bytes (1.4 MB) ================================================== downloaded 1.4 MB URL 'https://cran.rstudio.com/src/contrib/units_0.6-1.tar.gz'을 시도합니다 Content type 'application/x-gzip' length 916235 bytes (894 KB) ================================================== downloaded 894 KB * installing *source* package ‘units’ ... ** 패키지 ‘units’는 성공적으로 압축해제되었고, MD5 sums 이 확인되었습니다 configure: units: 0.6-1 checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ -m64 accepts -g... yes checking how to run the C++ preprocessor... g++ -m64 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for error_at_line... yes checking for gcc... gcc -m64 -std=gnu99 checking whether we are using the GNU C compiler... yes checking whether gcc -m64 -std=gnu99 accepts -g... yes checking for gcc -m64 -std=gnu99 option to accept ISO C89... none needed checking for XML_ParserCreate in -lexpat... yes checking udunits2.h usability... no checking udunits2.h presence... no checking for udunits2.h... no checking udunits2/udunits2.h usability... no checking udunits2/udunits2.h presence... no checking for udunits2/udunits2.h... no checking for ut_read_xml in -ludunits2... no configure: error: in `/tmp/RtmpnqC1Mn/R.INSTALL793540730e4/units': configure: error: -------------------------------------------------------------------------------- Configuration failed because libudunits2.so was not found. Try installing: * deb: libudunits2-dev (Debian, Ubuntu, ...) * rpm: udunits2-devel (Fedora, EPEL, ...) * brew: udunits (OSX) If udunits2 is already installed in a non-standard location, use: --configure-args='--with-udunits2-lib=/usr/local/lib' if the library was not found, and/or: --configure-args='--with-udunits2-include=/usr/include/udunits2' if the header was not found, replacing paths with appropriate values. You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually. -------------------------------------------------------------------------------- See `config.log' for more details ERROR: configuration failed for package ‘units’ * removing ‘/home/gogo930/R/x86_64-redhat-linux-gnu-library/3.4/units’ Error in i.p(...) : (converted from warning) installation of package ‘units’ had non-zero exit status
=====================================================
즉 ggiraphExtra 를 설치하려면 units, ggforce라는 패키지가 필요한데
units 라는 패키지를 설치하려면 libudunits2.so 를 설치해야 하네요
그런데 잘 모르지만 리눅스 환경에서 설치를 해야하는 것 같습니디ㅏ
rstudio server 가 리눅스에 있어서 그런것인지..
https://stackoverflow.com/questions/42287164/install-udunits2-package-for-r3-3
여기에 보면 udunits2 설치에 대한 내용이 나옵니다. 하지만 댓글들을 보면
역시 리눅스 사용자들인 것 같네요..
윈도우에서는 쓸수있는 방법이 없는 것일까요?
-
cardiomoon
2018.10.30 20:57
CRAN에서 설치해보셔요.
install.packages("ggiraphExtra")
윈도우즈에서 설치시에도 문제 없는 것으로 알고 있습니다.
-
스튜던트
2018.10.31 00:24
제 컴퓨테 있는 rstudio에서는 실행이 되는데, web rstudio에서는 역시나 안되네요..
우선 컴퓨터로 작업하고 왜 그런지 한번 확인해보겠습니다.
감사합니다 교수님
No. | Subject | Author | Date |
---|---|---|---|
1253 | logistic regression 명령어 문의드립니다. [2] | 로렌쵸메디치 | 2023.11.22 |
1252 | spss 파일 불러오기. [1] | 통계린 | 2023.11.22 |
1251 | PSM 매칭변수 숫자 관련 문의입니다. [1] | 오하나 | 2023.11.22 |
1250 | Multiple imputation 관련 질문 및, age adjusted incidence rate 관련 질문을 드립니다. | YSKBH | 2023.11.15 |
1249 | semMediation 설치 재문의드립니다 [3] | 마술샘 | 2023.11.11 |
1248 | 안녕하세요. 정회원 문의 [1] | lionking | 2023.11.06 |
1247 | PSM 관련 질문드립니다. | dr. | 2023.11.05 |
1246 | ggplot [1] | 통계린 | 2023.10.30 |
1245 | 정회원 [1] | 통계린 | 2023.10.29 |
1244 | PSM 관련 질문 드립니다. [2] | 로렌쵸메디치 | 2023.10.25 |
1243 | forest plot 그림이 전체가 다 나오지 않습니다. [1] | joyguni | 2023.10.08 |
1242 | PSM caliper default 값 관련 문의드립니다. [1] | Ooppps | 2023.10.05 |
1241 | reliability test tool,,, [1] | FAdavid | 2023.10.05 |
1240 | 정회원 가입 확인 요청드립니다. [1] | osman | 2023.10.03 |
1239 | 생존분석, cox 회귀 관련 기초적인 질문 입니다. | 만니톨 | 2023.09.27 |
1238 | Twang-mnps에서 매칭된 데이터를 추출하는 방법 좀 알려주세요 | Dorocy | 2023.09.26 |
1237 | 영수증 발급을 부탁드립니다. [1] | 규빈어멈 | 2023.09.26 |
1236 | 정회원 확인 [2] | lionking | 2023.09.24 |
1235 | autoReg 에러 문의드립니다 [1] | 소소 | 2023.09.23 |
1234 | 안녕하세요 에러 관련 문의드립니다 [1] | 화이팅 | 2023.09.19 |
ggplot2버젼이 업데이트되면서 나는 에러입니다.
github에 있는 ggiraphExtra패키지로 업데이트 해보셔요.
devtools::install_github("cardiomoon/ggiraphExtra")
감사합니다.