PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
R_Language
[问题] shiny io 中文显示问题
楼主:
samex4x4
(Same)
2016-11-21 11:52:02
[问题类型]:
程式咨询(我想用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 中文显示
作者:
clansoda
(小笨)
2016-11-21 12:37:00
我猜就是不能用中文,我写的shinyapp只要有中文shinyio连挂都不给我挂
作者:
abc2090614
(casperxdd)
2016-11-21 16:04:00
直接写信去问RStudio的Yihue Xie吧
楼主:
samex4x4
(Same)
2016-11-21 17:29:00
谢益辉大大吗XD
作者:
abc2090614
(casperxdd)
2016-11-22 01:33:00
有够多人干谯他们就会增加中文支援了啊XD
作者:
psinqoo
(零度空間)
2016-11-22 08:56:00
我建议 公司报表 不要上传 io 自己架站~ io 有时数限制超过多钱~ 加上中文显示是一个问题~我已经放弃 IO~ 直接架站~ 在内部内网 连SQL也相对安全
作者:
clansoda
(小笨)
2016-11-22 09:10:00
网站上面有写 印象中25小时?
作者:
rodion
(r-kan/reminder)
2016-11-22 10:05:00
可以中文吧?
https://rkan.shinyapps.io/SHY_draft/
作者:
also5566
(愚人节快乐)
2016-11-22 15:23:00
我自己的经验是UI.R可以有中文,server.R不行楼上那个可能也是UI.R中有中文,server.R没有你如果只是要给其他人方便使用,server.R应该可以用英文写吧,不知道我有没有误解你的问题@@
作者:
ching0629
(Syameroke)
2016-11-22 18:22:00
试试先打options(encoding = "UTF-8")后再上传
https://ychuang.shinyapps.io/HANI_zhTW/
作者:
rodion
(r-kan/reminder)
2016-11-22 19:17:00
嗨 原PO 我刚上传server.R ui.R到github repo了repo网址:
https://github.com/r-kan/Quant-in-R
给你参考看看 还是不行的话再来讨论另外R版本3.3.1 作业系统:OSX 10.11.2
继续阅读
[问题] glmmPQL无法收敛问题
ppp1987
[问题] 无法用shiny server执行leaflet套件
rlearner
[问题] (救回) loop in analysis
celestialgod
[问题] (救回) loop 中 cell 内细格等于变项
celestialgod
[问题] (救回) 如何读入多个CSV档
celestialgod
[问题] (救回) find & substr 在r的应用
celestialgod
Re: 呼吁:有板友推文回应后请尽量不要删除原文
celestialgod
[问题] (救回) 多回圈loop 与paste
celestialgod
[问题] (救回) mac write csv
celestialgod
Re: [问题] 用两个档案找相同的值
celestialgod
Links
booklink
Contact Us: admin [ a t ] ucptt.com