반응형

.하고싶은 분석이 있어서 R에서 Konlpy 를 다운받으려고 시도했다: 2020-02-07

> install.packages("KoNLP")

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

 

Using Rtools40 on Windows

Starting with R 4.0.0 (released April 2020), R for Windows uses a toolchain bundle called rtools40. This version of Rtools includes gcc 8.3.0, and introduces a new build system based on msys2, which makes easier to build and maintain R itself as well as th

cran.rstudio.com

 

설치가 안되어 여러 방법을 시도해봤다.

1. CRAN 미러를 자동으로, 한국으로도 바꿔봐도 KoNLP가 사라졌는지 설치가 되지 않더라.

2. R 버전문제인줄 알고 R을 5번은 삭제했다가 새버전 받았다가 반복했지만 똑같다.

3. R 사이트에서 Package를 찾아봐도 KoNLP PKG가 없다.

4. 구글링도 해봤으나 최근에 설치하신 분이 없다. . .

수많은 R을 삭제했다가 다시 깔았던 기록들...

그러다가 찾은

R Korea - KRSG(Korean R Study Group)

페이스북 링크 !!!

출처: https://www.facebook.com/groups/krstudy/265600956947517/

안되는 것 정상이라고 한다.

# java, rJava 설치

install.packages("multilinguer")

# 이때 mac 사용자는 데스크탑 비밀번호를 물어봅니다. 입력해줘야 설치가 진행됩니다.

library(multilinguer)

install_jdk()

# 위 함수에서 에러가 발생하면 알려주세요

# https://github.com/mrchypark/multilinguer/issues

# 의존성 패키지 설치

install.packages(c('stringr', 'hash', 'tau', 'Sejong', 'RSQLite', 'devtools'), type = "binary")

# 아카이브된 버전의 패키지 설치

install.packages("https://cran.r-project.org/src/contrib/Archive/KoNLP/KoNLP_0.80.2.tar.gz", repos=NULL, type="source")

설치 완료!!!

하지만 library("KoNLP")시 또 다른 이슈가 발생하는데... 이건 다음 포스팅에서!

 

반응형

+ Recent posts