[問題] R Studio 讀取xlsx 問題

看板R_Language作者 (B99)時間7年前 (2018/04/12 21:58), 7年前編輯推噓1(103)
留言4則, 3人參與, 7年前最新討論串1/1
[問題類型]: 程式跑不出來 [軟體熟悉度]: 入門 [問題敘述]: 如題,想要讀取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

04/12 22:26, 7年前 , 1F
用readxl讀呢? 這個package沒這個問題
04/12 22:26, 1F
用法一樣嗎? 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?

04/12 23:10, 7年前 , 2F
java裝x64還是x86?
04/12 23:10, 2F
x64

04/12 23:11, 7年前 , 3F
有設定PATH嗎
04/12 23:11, 3F
有設定

04/13 03:05, 7年前 , 4F
如果java設定不起來 建議使用readxl 方便很多
04/13 03:05, 4F
我試試看 ※ 編輯: Algernon69 (114.137.148.209), 04/13/2018 09:33:44 ※ 編輯: Algernon69 (114.137.148.209), 04/13/2018 09:40:55
文章代碼(AID): #1QpsOMiY (R_Language)
文章代碼(AID): #1QpsOMiY (R_Language)