본문 바로가기
IT/Error Report

[R] Warning message : package 'xxx' is not available (for R version x.y.z)

by G0Yang 2019. 10. 20.

R visualization R을 활용한 데이터 시각화

 

p.670

 

> library(wordcloud)

 

에서 에러 발생

 

--------- 에러 메시지 ----------

Installing package into ‘C:/Users/user/OneDrive/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
--- 현재 세션에서 사용할 CRAN 미러를 선택해 주세요 ---
경고: 저장소 https://cran.seoul.go.kr/bin/windows/contrib/3.1에 대한 인덱스에 접근할 수 없습니다
경고메시지:
package ‘wordcloud’ is not available (for R version 3.1.1) 

 

 

 

 

stackoverflow 검색 결과

https://stackoverflow.com/questions/25721884/how-should-i-deal-with-package-xxx-is-not-available-for-r-version-x-y-z-wa

 

How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?

I tried to install a package, using install.packages("foobarbaz") but received the warning Warning message: package 'foobarbaz' is not available (for R version x.y.z) Why doesn't R think that the

stackoverflow.com

 

 

답글 중에서 아래 내용을 시도함.

 

 

This solution might break R but here is an easiest solution that works 99% of time.

You need to do is just:

install.packages('package-name',repos='http://cran.us.r-project.org')

As mentioned by the author over here

 

Installing R package: Fixing package 'xxx' is not available (for R version x.y.z)” warning? - Haktan Suren

Welcome to Haktan Suren's personal web page, he writes about PHP, MySQL, JQuery, JavaScript, Bioinformatics and marketing stuff :). He got an MSc. degree from Virginia Tech (VT) in US.

www.haktansuren.com

 

> install.packages('wordcloud',repos='http://cran.us.r-project.org')
Installing package into ‘C:/Users/user/OneDrive/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)

  바이너리 버전을 이용할 수 있습니다 (그리고 설치되어질 것입니다) 그러나 소스 버전은 추후에 제공될 것입니다:
          binary source
wordcloud    2.5    2.6

also installing the dependencies ‘RColorBrewer’, ‘slam’, ‘Rcpp’

URL 'http://cran.us.r-project.org/bin/windows/contrib/3.1/RColorBrewer_1.1-2.zip'을 시도합니다
Content type 'application/zip' length 26693 bytes (26 Kb)
URL을 열었습니다
downloaded 26 Kb

URL 'http://cran.us.r-project.org/bin/windows/contrib/3.1/slam_0.1-32.zip'을 시도합니다
Content type 'application/zip' length 111528 bytes (108 Kb)
URL을 열었습니다
downloaded 108 Kb

URL 'http://cran.us.r-project.org/bin/windows/contrib/3.1/Rcpp_0.12.4.zip'을 시도합니다
Content type 'application/zip' length 3236565 bytes (3.1 Mb)
URL을 열었습니다
downloaded 3.1 Mb

URL 'http://cran.us.r-project.org/bin/windows/contrib/3.1/wordcloud_2.5.zip'을 시도합니다
Content type 'application/zip' length 465577 bytes (454 Kb)
URL을 열었습니다
downloaded 454 Kb

패키지 ‘RColorBrewer’를 성공적으로 압축해제하였고 MD5 sums 이 확인되었습니다
패키지 ‘slam’를 성공적으로 압축해제하였고 MD5 sums 이 확인되었습니다
패키지 ‘Rcpp’를 성공적으로 압축해제하였고 MD5 sums 이 확인되었습니다
패키지 ‘wordcloud’를 성공적으로 압축해제하였고 MD5 sums 이 확인되었습니다

다운로드된 바이너리 패키지들은 다음의 위치에 있습니다
        C:\Users\user\AppData\Local\Temp\RtmpaCYjIn\downloaded_packages

 

 

 

 

정상적으로 설치가 됨.

 

 

 

> library(wordcloud)
필요한 패키지를 로딩중입니다: RColorBrewer
경고메시지:
1: 패키지 ‘wordcloud’는 R 버전 3.1.3에서 작성되었습니다 
2: 패키지 ‘RColorBrewer’는 R 버전 3.1.3에서 작성되었습니다 

 

 

 

설치 환경

윈도우 10 64bit

R 3.1.1 64bit - 관리자 권한으로 실행

 

댓글