r - How can I suppress Google's API warning when using ggmap with knitr? -


how can suppress google's messages when using ggmap knitr .rnw file? here code generate pdf .rnw:

\documentclass{article} \begin{document} <<>>= library(ggmap) qmap("empire state building", zoom = 15, messaging = false, source = "google")  @ \end{document} 

in resulting .pdf, following poorly formatted messages appear:
map url : http://maps.googleapis.com/maps/api/staticmap?center=empire+state+building&zoom=15&size=%20640x640&scale=%202&maptype=terrain&sensor=false google maps api terms of service : http://developers.google.com/maps/terms
information url : http://maps.googleapis.com/maps/api/geocode/json?address=empire+state+building&sensor=false
google maps api terms of service : http://developers.google.com/maps/terms

can suppressed (was hoping messaging = false this) or @ least formatted warnings don't run off page? thank you.

you can supress messages code chunk using message = false

<<themap, message = false>>= library(ggmap) qmap("empire state building", zoom = 15, messaging = false, source = "google")  @ 

suppresses these messages.

looking @ ggmap::qmap, evaluates arguments in ... in might considered non-standard way allow different sources used. appears verbose (an argument rgooglemaps::getmap not parsed or passed, nor messaging (an argument get_googlemap`)


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo