【发布时间】:2015-10-13 15:16:12
【问题描述】:
我使用 RStudio 作为 R 的前端。它在 GNU/Linux 上完美运行(即使是俄语语言环境和俄语消息)。但是,在 Windows 上,它的效果更差。 问题在于消息的字体或字符集。
我安装了 RStudio 版本 0.99.467 (AMD64) 和 R 版本 3.2.1 (2015-06-18)。
我在开头看到以下提示(没有问题,语言环境是 en_US,英语):
R version 3.2.1 (2015-06-18) -- "World-Famous Astronaut"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
但是当我尝试做错事时,假设尝试加载未安装的包,我看到无法读取的错误消息。
> library(abcdef)
Error in library(abcdef) : íåò ïàêåòà ïîä íàçâàíèåì ‘abcdef’
如何让它可读?
顺便说一下,这个问题仅在 RStudio 中出现。 RGui 工作正常(即使是俄语信息,也没有可疑的信件):
> library(abcdef)
Ошибка в library(abcdef) :нет пакета под названием ‘abcdef’
(未安装包“abcdef”)。
不知道从哪里开始挖掘。它甚至可以解决吗?还是 RStudio 中的错误?
【问题讨论】:
标签: r windows character-encoding rstudio