gpt4 book ai didi

r - 找不到任何 X11 字体错误

转载 作者:行者123 更新时间:2023-12-04 07:42:38 24 4
gpt4 key购买 nike

我开始进入 R 开发,我正在学习一个教程,该教程在某个时候打开“X11”以显示图形,但是当该窗口打开时,我收到以下错误:

Error in axis(side = side, at = at, labels = labels, ...) : could not find any X11 fonts Check that the Font Path is correct. In addition: Warning messages: 1: In function (display = "", width, height, pointsize, gamma, bg, : locale not supported by Xlib: some X ops will operate in C locale 2: In function (display = "", width, height, pointsize, gamma, bg, : X cannot set locale modifiers



我一直在谷歌搜索,但找不到如何修复此应用程序的“字体路径”,有人知道吗?

编辑

sessionInfo() 的输出:
> sessionInfo()
R version 2.13.2 (2011-09-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] C/UTF-8/C/C/C/C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] galgo_1.1 R.oo_1.8.2 R.methodsS3_1.2.1

loaded via a namespace (and not attached):
[1] tools_2.13.2

做名字时(X11Fonts()):
> names(X11Fonts())
[1] "serif" "sans" "mono"
>

最佳答案

I "followed" the admin manual, and set the lines in the .bashrc Setting for the new UTF-8 terminal support in Lion.


export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

来自 http://www.mail-archive.com/r-sig-mac@r-project.org/msg01027.html

关于r - 找不到任何 X11 字体错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8808069/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com