[問題] R Studio 讀取xlsx 問題

作者: Algernon69 (B99)   2018-04-12 21:58:42
[問題類型]:
程式跑不出來
[軟體熟悉度]:
入門
[問題敘述]:
如題,想要讀取xlsx的股票資料繪製k線圖,可是卻一直無法讀取資料,一直跑出 packag
e'rJava' could not be loaded,已經安裝好Java也用sys設定好路徑,唯一的問題是我
的Java長這
https://i.imgur.com/hLDwrA1.jpg
另外我是從這邊學怎麼設定Java
http://earthworm2016.pixnet.net/blog/post/323353783
[程式範例]:
請把以下不需要的部份刪除
[環境敘述]:
R version 3.4.3 (2017-11-30)
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=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantmod_0.4-12 TTR_0.23-2 xts_0.10-2 zoo_1.8-0 shiny_1.0.
5
loaded via a namespace (and not attached):
[1] Rcpp_0.12.14 lattice_0.20-35 digest_0.6.13 mime_0.5 grid_3.4.
3 R6_2.2.2 xtable_1.8-2
[8] curl_3.1 tools_3.4.3 httpuv_1.3.5 compiler_3.4.3 htmltools
_0.3.6
>
[關鍵字]:
Java, xlsx
作者: clansoda (小笨)   2018-04-12 22:26:00
用readxl讀呢? 這個package沒這個問題
作者: celestialgod (天)   2018-04-12 23:10:00
java裝x64還是x86?有設定PATH嗎
作者: dreler1 (....)   2018-04-13 03:05:00
如果java設定不起來 建議使用readxl 方便很多

Links booklink

Contact Us: admin [ a t ] ucptt.com