Re: [問題] 讀入"鴴" "鸊鷉" 等怪字

看板R_Language作者 (@_2;)時間9年前 (2015/07/04 15:02), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串3/6 (看更多)
※ 引述《celestialgod (攸藍)》之銘言: 因為xls可以存取UTF-8位元,昨天就有想到可以直接讀取xls。 但rJava這個package一直裝不進去... install.packages('rJava') #這部分沒有問題 library(rJava) #這邊就產生下面的錯誤訊息 Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures. Error: package or namespace load failed for ‘rJava’ Java版本不太會查,不知道是不是這個? 已經有用Java upload檢查過了是最新版, build 1.8.0_45-bl5 截圖如下: http://imgur.com/bUPpe9f
補上sessionInfo() R version 3.2.1 (2015-06-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=Chinese (Traditional)_Taiwan.950 [2] LC_CTYPE=Chinese (Traditional)_Taiwan.950 [3] LC_MONETARY=Chinese (Traditional)_Taiwan.950 [4] LC_NUMERIC=C [5] LC_TIME=Chinese (Traditional)_Taiwan.950 : xls部分 : 好讀上色版:http://pastebin.com/2L5UrhSq : library(rJava) : library(xlsx) : library(data.table) : library(magrittr) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.82.229.240 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1435993340.A.8D4.html

07/04 15:04, , 1F
阿忘了講readxl這個package可以用.. 感謝
07/04 15:04, 1F

07/04 15:18, , 2F
直接用readxl吧...
07/04 15:18, 2F

07/04 15:19, , 3F
rJava 只能用jre,jdk會出錯
07/04 15:19, 3F
文章代碼(AID): #1LbuJyZK (R_Language)
文章代碼(AID): #1LbuJyZK (R_Language)