[問題類型]:
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
[軟體熟悉度]:
請把以下不需要的部份刪除
入門(寫過其他程式,只是對語法不熟悉)
[問題敘述]:
大家好我又來了m(_ _)m
最近在使用shiny為公司寫給行銷人員使用的報表
之前就發現有中文顯示問題
估狗後增加一個global.R
內容為 options(shiny.usecairo = FALSE)
但還是無法掛上shiny io
錯誤訊息大概都是這樣
Failed to lint file 'server.R'
The linter failed with message:
invalid multibyte string at '<e7><99><bc>?欧㕑") %>%'
Failed to lint file 'ui.R'
The linter failed with message:
invalid multibyte string at '<e7><99><bc>?<87>','
Failed to lint file 'server.R'
The linter failed with message:
查看warnings()
Warning messages:
1: In gregexpr("../", content, fixed = TRUE) :
input string 112 is invalid in this locale
2: In gregexpr("../", content, fixed = TRUE) :
input string 138 is invalid in this locale
...
...
...
都是我寫中文的行數
想詢問大家要如何解決
謝謝
[程式範例]:
[環境敘述]:
R version 3.3.2 (2016-10-31)
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 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
[關鍵字]:
shiny io 中文顯示