rstudio 损坏了情节中的字母和数字
rstudio corrupted letter and number in plot
我在使用 Rstudio 时遇到了这个问题,绘图标签被内部有 4 个数字的正方形替换。
有人知道是什么导致了这个麻烦吗?我试图重新创建 conda env 并安装 rstudio,但没有用。如果我使用基本的 R 就没有这样的问题。
提前致谢
2020 年 7 月 28 日更新:
我尝试通过 conda 为新帐户安装 rstudio,问题重现。
我尝试在第二台 PC 上通过 conda 安装 rstudio,问题仍然存在。
我尝试通过 conda 安装旧版本的 rstudio,conda 永远“解决环境”。
我认为这可能是 conda recipie 的问题....
2020 年 7 月 29 日更新:
通过在 plot 函数中指定字体系列解决了问题
plot(1,2,family="Times New Roman")
但是R默认字体
plot(1,2,family="mono")
plot(1,2,family="sans")
重现同样的问题。似乎是 conda 导致 R 卸载了默认字体。
我在我的 ubuntu 上安装了 Helvetica.ttf.gz,那些乱码消失了。
我在使用 Rstudio 时遇到了这个问题,绘图标签被内部有 4 个数字的正方形替换。
有人知道是什么导致了这个麻烦吗?我试图重新创建 conda env 并安装 rstudio,但没有用。如果我使用基本的 R 就没有这样的问题。
提前致谢
2020 年 7 月 28 日更新:
我尝试通过 conda 为新帐户安装 rstudio,问题重现。 我尝试在第二台 PC 上通过 conda 安装 rstudio,问题仍然存在。
我尝试通过 conda 安装旧版本的 rstudio,conda 永远“解决环境”。
我认为这可能是 conda recipie 的问题....
2020 年 7 月 29 日更新:
通过在 plot 函数中指定字体系列解决了问题
plot(1,2,family="Times New Roman")
但是R默认字体
plot(1,2,family="mono")
plot(1,2,family="sans")
重现同样的问题。似乎是 conda 导致 R 卸载了默认字体。
我在我的 ubuntu 上安装了 Helvetica.ttf.gz,那些乱码消失了。