"No font found in Rcairo_set_font"
"No font found in Rcairo_set_font"
我在尝试使用 Cairo
时出现以下错误:No font found in Rcairo_set_font
这是日志:
> library(Cairo)
> Cairo.capabilities()
png jpeg tiff pdf svg ps x11 win raster
TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE
> Cairo(600, 600, file="plot.png", type="png", bg="white")
Error in Cairo(600, 600, file = "plot.png", type = "png", bg = "white") :
No font found in Rcairo_set_font
我在 CentOS 7 上使用 R 版本 3.2.1(在 Docker 容器中)。
有人知道如何避免这个错误吗?
我在网上找不到任何解决此问题的方法...
我已经通过安装 xorg-x11-fonts-Type1
软件包解决了这个问题:
yum install xorg-x11-fonts-Type1
我在尝试使用 Cairo
时出现以下错误:No font found in Rcairo_set_font
这是日志:
> library(Cairo)
> Cairo.capabilities()
png jpeg tiff pdf svg ps x11 win raster
TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE
> Cairo(600, 600, file="plot.png", type="png", bg="white")
Error in Cairo(600, 600, file = "plot.png", type = "png", bg = "white") :
No font found in Rcairo_set_font
我在 CentOS 7 上使用 R 版本 3.2.1(在 Docker 容器中)。
有人知道如何避免这个错误吗?
我在网上找不到任何解决此问题的方法...
我已经通过安装 xorg-x11-fonts-Type1
软件包解决了这个问题:
yum install xorg-x11-fonts-Type1