Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 핵 개발
- 비율
- 최저시급 개정안
- 산입 범위
- 동전 던지기
- 비선형성
- 조던피더슨
- 선형성
- 비행기 추락
- t-test
- 찬물샤워
- 산입범위
- 아인슈타인
- 최저 시급
- 인터스텔라
- R4DS
- R 프로그래밍
- 멘탈관리
- 큰수의 법칙
- 성악설
- 통계 오류
- 자기관리
- 핵개발
- t검정
- 통계오류
- 수학적 사고
- 이기적 유전자
- 유닛테스트
- R 기초
- 티모시페리스
Archives
- Today
- Total
public bigdata
R studio server unbuntu16.04를 이용해 보면서 직면하게된 문제점들 본문
1. "tidyverse"패키지 설치 error
회사에서 R studio server를 설치해 주었다. "tidyverse"패키지를 설치하려고 하니 다음과 같은 에러가 발생했다.
> install.packages("tidyverse")
Installing package into ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘httr’, ‘rvest’, ‘xml2’
URL 'https://cloud.r-project.org/src/contrib/curl_4.2.tar.gz'을 시도합니다
Content type 'application/x-gzip' length 667901 bytes (652 KB)
==================================================
downloaded 652 KB
URL 'https://cloud.r-project.org/src/contrib/httr_1.4.1.tar.gz'을 시도합니다
Content type 'application/x-gzip' length 158465 bytes (154 KB)
==================================================
downloaded 154 KB
URL 'https://cloud.r-project.org/src/contrib/rvest_0.3.5.tar.gz'을 시도합니다
Content type 'application/x-gzip' length 1129355 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
URL 'https://cloud.r-project.org/src/contrib/xml2_1.2.2.tar.gz'을 시도합니다
Content type 'application/x-gzip' length 261081 bytes (254 KB)
==================================================
downloaded 254 KB
URL 'https://cloud.r-project.org/src/contrib/tidyverse_1.2.1.tar.gz'을 시도합니다
Content type 'application/x-gzip' length 61647 bytes (60 KB)
==================================================
downloaded 60 KB
* installing *source* package ‘curl’ ...
** 패키지 ‘curl’는 성공적으로 압축해제되었고, MD5 sums 이 확인되었습니다
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘xml2’ ...
** 패키지 ‘xml2’는 성공적으로 압축해제되었고, MD5 sums 이 확인되었습니다
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
* deb: libxml2-dev (Debian, Ubuntu, etc)
* rpm: libxml2-devel (Fedora, CentOS, RHEL)
* csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘xml2’
* removing ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4/xml2’
Warning in install.packages :
installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘xml2’, ‘httr’ are not available for package ‘rvest’
* removing ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4/rvest’
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/home/dfine/R/x86_64-pc-linux-gnu-library/3.4/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpYUtl9J/downloaded_packages’
자료를 찾던 중에 해당 링크의 글을 사용하니 해결이 되었다.
2. plot 한글폰트 깨지는 경우 해결방안
아래 사진 처럼 plot 한글폰트가 깨지는 경우에 해결 방법이다. 중간중간에 에러가 뜨는데 해당 에러는 구글 검색 후에 R studio server 내의 linux 터미널에 명령어를 복사/붙여넣기를 통해서 해결하였다.
링크
AWS에서 구축한 Rstudio plot 한글 깨짐 해결 방안
AWS에서 Rstudio server을 구축 하고 잘 사용 하다가 어느순간 plot에 한글을 적용하려다 보니 깨지는 현상이 생긴다. 이를 해결 하기 위해 두달동안 여러 가지 방법을 시도해본 결과, 최종적으로 도움이 될 법한 내용을 소개 하고자 한다…
medium.com
3. linux Terminal이 응답하지 않을 때
링크
'R programming > R' 카테고리의 다른 글
apply 계열 함수 (0) | 2020.08.12 |
---|---|
tidy R 공부소스 (0) | 2020.04.22 |
Crawling 관련 R자료 정리 (0) | 2019.11.07 |