如何在使用gitmap与knitr .Rnw文件时抑制Google的消息?下面是代码来生成从.Rnw一个pdf:与knitr一起使用ggmap时,如何禁止Google的API警告?
\documentclass{article}
\begin{document}
<<>>=
library(ggmap)
qmap("empire state building", zoom = 15, messaging = FALSE, source = "google")
@
\end{document}
在结果.PDF,下面的格式不正确的消息显示:http://maps.googleapis.com/maps/api/staticmap?center=empire+state+building&zoom=15&size=%20640x640&scale=%202&maptype=terrain&sensor=false 谷歌地图API服务条款:http://developers.google.com/maps/terms
信息从URL
地图从网址:
谷歌地图API服务条款:http://developers.google.com/maps/terms
这能抑制(希望messaging = FALSE
会做到这一点),或至少格式化,警告不要るñ关闭页面?谢谢。
将'suppressMessages'工作? –
'消息= FALSE'不'消息= FALSE'? – mnel
' messaging = FALSE'在'ggmap'文档中指定。另外,感谢您的解决方案。 –