错误在grid.Call(L_textBounds,as.graphicsAnnot(x $ label),x $ x,x $ y,:未找到多边形边 [英] Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found

查看:4079
本文介绍了错误在grid.Call(L_textBounds,as.graphicsAnnot(x $ label),x $ x,x $ y,:未找到多边形边的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Mac OS X上安装了RStudio,版本10.7.3
执行以下命令后:

I just installed RStudio on Mac OS X, version 10.7.3 After executing the following commands

library(ggplot2)
qplot(mpg, wt, data=mtcars)

错误:
$ b

I get the following error:

Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  Polygon edge not found
In addition: Warning messages:
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
  no font could be found for family "Arial"
2: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
  no font could be found for family "Arial"

任何想法,重新启动没有工作!!

Any ideas, restart did not work !!

干杯

推荐答案

这发生在我身上我发现Arial字体文件已被禁用,请先检查 Arial.ttf 是否已被移至禁用的字体目录。从终端:

this happened to me and i discovered that the arial font file had been disabled. first check to see if Arial.ttf has been moved to the disabled fonts directory. from the terminal:

ls /Library/Fonts\ Disabled

如果是这样,请将其移回活动字体目录。

if so, move it back to the active fonts directory.

sudo mv /Library/Fonts\ Disabled/Arial.ttf /Library/Fonts

登录,然后打开'字体书'应用程序。在我的例子中,arial是在手之前出现的,但它是存储在 / Library / fonts / Microsoft / 中的Microsoft版本。字体书现在可能会在字体名称旁边显示一个黄色三角形,表示该字体存在多个副本。突出显示字体名称并从 Edit 菜单中选择 Resolve Duplicates 命令。这应该禁用Microsoft副本,您可以通过选择其中一个字体类型面来确认(单击字体名称旁边的展开三角形),右键单击标有 Off ,然后选择在Finder中显示,这会打开一个窗口到Microsoft字体目录。

log out, log in, then open the 'Font Book' application. in my case, arial was present before hand, but it was the Microsoft version stored in /Library/fonts/Microsoft/. Font Book may now show a yellow triangle next to the font name, indicating that multiple copies of the font exist. highlight the font name and chose the Resolve Duplicates command from the Edit menu. this should disable the Microsoft copy, which you can confirm by selecting one of the arial type faces (click the expand triangle next to the font name), right-click on the one labelled Off, and choose Reveal in Finder, which should open a window to Microsoft fonts directory.

这篇关于错误在grid.Call(L_textBounds,as.graphicsAnnot(x $ label),x $ x,x $ y,:未找到多边形边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆