[问题类型]:
程式咨询(我想用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 中文显示