Error: processing vignette 'woorimalsam-dic.Rmd' failed with diagnostics
jooyoungseo opened this issue · 1 comments
안녕하세요.
먼저 보석같은 패키지를 만드시느라 노고가 많으신 선생님께 감사를 드립니다.
엄청난 패키지를 다른 시스템에서는 잘 쓰다가 이 단맛을 못 보니까 너무 답답해서 이렇게 이슈를 남깁니다.
KoNLP 라이브러리를 로드하고 useSejongDic()나 useNIADic()를 사용하려고 하면 자꾸 에러가 떠서 NIA Dic을 설치하려는데, 이 또한 계속 에러가 뜹니다.
제 시스템 정보와 에러 내용들을 아래에 공유해 드립니다. 혹시 해결 방안이 있는 지 궁금합니다.
#coding:cp949
Sys.setlocale("LC_ALL","Korean")
[1] "LC_COLLATE=Korean_Korea.949;LC_CTYPE=Korean_Korea.949;LC_MONETARY=Korean_Korea.949;LC_NUMERIC=C;LC_TIME=Korean_Korea.949"Sys.info()
sysname release version nodename
"Windows" "10 x64" "build 14393" "DESKTOP-JCEI8IR"
machine login user effective_user
"x86-64" "JooYoung" "JooYoung" "JooYoung"devtools::install_github('haven-jeon/NIADic/NIADic', build_vignettes = TRUE)
Downloading GitHub repo haven-jeon/NIADic@master
from URL https://api.github.com/repos/haven-jeon/NIADic/zipball/master
Installing NIADic
"C:/PROGRA1/R/R-341.1/bin/x64/R" --no-site-file --no-environ --no-save
--no-restore --quiet CMD build
"C:\Users\JooYoung\AppData\Local\Temp\RtmpGEbZRb\devtools22017e25f40\haven-jeon-NIADic-5ef8093\NIADic"
--no-resave-data --no-manual
- checking for file 'C:\Users\JooYoung\AppData\Local\Temp\RtmpGEbZRb\devtools22017e25f40\haven-jeon-NIADic-5ef8093\NIADic/DESCRIPTION' ... OK
- preparing 'NIADic':
- checking DESCRIPTION meta-information ... OK
- installing the package to build vignettes
- creating vignettes ...Warning: running command '"C:/PROGRA
1/R/R-341.1/bin/x64/Rscript" --vanilla --default-packages= -e "tools::buildVignettes(dir = '.', tangle = TRUE)"' had status 1
ERROR
Successfully Loaded NIADic Package.
Quitting from lines 54-58 (woorimalsam-dic.Rmd)
Error: processing vignette 'woorimalsam-dic.Rmd' failed with diagnostics:
cannot take a sample larger than the population when 'replace = FALSE'
Execution halted
Installation failed: Command failed (1)
library(KoNLP)
Checking user defined dictionary!
useNIADic()
Backup was just finished!
Downloading package from url: https://github.com/haven-jeon/NIADic/releases/download/0.0.1/NIADic_0.0.1.tar.gz
/usr/bin/tar: Cannot connect to C: resolve failed
/usr/bin/tar: Cannot connect to C: resolve failed
Installation failed: argument is of length zero
Error in tryCatch({ : can't install NIADic package!
Please refer 'https://github.com/haven-jeon/NIADic' to install.
Calls: useNIADic -> buildDictionary -> install_NIADic -> tryCatch
In addition: Warning messages:
1: running command 'tar.exe -xf "C:\Users\JooYoung\AppData\Local\Temp\RtmpGEbZRb\file22014f65c47.tar.gz" -C "C:/Users/JooYoung/AppData/Local/Temp/RtmpGEbZRb/devtools22025cd2c59"' had status 128
2: In utils::untar(src, exdir = target, compressed = "gzip") :
'tar.exe -xf "C:\Users\JooYoung\AppData\Local\Temp\RtmpGEbZRb\file22014f65c47.tar.gz" -C "C:/Users/JooYoung/AppData/Local/Temp/RtmpGEbZRb/devtools22025cd2c59"' returned error code 128
3: running command 'tar.exe -tf "C:\Users\JooYoung\AppData\Local\Temp\RtmpGEbZRb\file22014f65c47.tar.gz"' had status 128
4: In min(slashes) : no non-missing arguments to min; returning Inf
Execution halted
해결했습니다. ^^ 현재 vignettes Rmd 파일과 관련한 오류 같은데 자세한 것은 제작자 분이 해결해 주셔야 할 것 같고요. 일단 NIADic을 설치할 때 vignettes 관련 옵션을 빼고 설치하면 됩니다.
혹시나 같은 내용으로 고생하시는 분들은 아래와 같이 vignettes 관련 옵션을 빼고 설치해 보세요 ^^
devtools::install_github('haven-jeon/NIADic/NIADic')