看板 R_Language 關於我們 聯絡資訊
[問題類型]: 程式跑不出來 [軟體熟悉度]: 入門 [問題敘述]: 如題,想要讀取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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.73.34.144 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1523541526.A.B22.html
clansoda: 用readxl讀呢? 這個package沒這個問題04/12 22:26
用法一樣嗎? server = function(input, output){ output$mainPlot = renderPlot({ filename = in put$file1 # if (is.null(filename)) return(NULL) # temp=read.xlsx(filename$data path, detectDates = TRUE) 這是xlsx時的寫法 請問是直接把read.xlsx改readxl?
celestialgod: java裝x64還是x86?04/12 23:10
x64
celestialgod: 有設定PATH嗎04/12 23:11
有設定
dreler1: 如果java設定不起來 建議使用readxl 方便很多04/13 03:05
我試試看 ※ 編輯: Algernon69 (114.137.148.209), 04/13/2018 09:33:44 ※ 編輯: Algernon69 (114.137.148.209), 04/13/2018 09:40:55