[問題] 無法安裝 tidytext

作者: jerkoffme (摩德男孩)   2019-08-13 20:12:26
[問題類型]:無法安裝 tidytext
[軟體熟悉度]:
使用者(已經有用R 做過不少作品)
[問題敘述]:
因工作需要,要作文本挖掘,但無法安裝 tidytext
install.packages("tidytext")
後會噴錯如以下
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "zh_TW.UTF-8") :
作業系統回報無法實現設定語區為 "zh_TW.UTF-8" 的要求
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "zh_TW.UTF-8") :
作業系統回報無法實現設定語區為 "zh_TW.UTF-8" 的要求
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "UTF-8") :
作業系統回報無法實現設定語區為 "UTF-8" 的要求
錯誤: 7:1: 未預期的 ')'
7: )
^
停止執行
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l
"C:\Users\Pacific\Documents\R\win-library\3.4"
C:\Users\Pacific\AppData\Local\Temp\RtmpKGoXJY/downloaded_packages/stopwords_1.0.tar.gz'
had status 1
Warning in install.packages :
installation of package ‘stopwords’ had non-zero exit status
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "zh_TW.UTF-8") :
作業系統回報無法實現設定語區為 "zh_TW.UTF-8" 的要求
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "zh_TW.UTF-8") :
作業系統回報無法實現設定語區為 "zh_TW.UTF-8" 的要求
[1] ""
Warning message:
In Sys.setlocale(category = "LC_ALL", locale = "UTF-8") :
作業系統回報無法實現設定語區為 "UTF-8" 的要求
錯誤: 7:1: 未預期的 ')'
7: )
^
停止執行
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l
"C:\Users\Pacific\Documents\R\win-library\3.4"
C:\Users\Pacific\AppData\Local\Temp\RtmpKGoXJY/downloaded_packages/tidytext_0.2.2.tar.gz'
had status 1
Warning in install.packages :
installation of package ‘tidytext’ had non-zero exit status
[環境敘述]:
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950 LC_CTYPE=Chinese
(Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
作者: andrew43 (討厭有好心推文後刪文者)   2019-08-13 20:30:00
先暫時把r的locale改成別的試試看

Links booklink

Contact Us: admin [ a t ] ucptt.com