title: Error in FUN(X[[i]], ...) : object 'lon' not found
body: <p>I am trying to map locations on real map. </p>
  
  <pre><code>sbbox &lt;- make_bbox(lon = New_Ts$Hotel_Longitude, lat = New_Ts$Hotel_Latitude, f = .1)
  sbbox
  
  mapgilbert &lt;- get_map(location = sbbox, maptype = "roadmap")
  ggmap(mapgilbert) + geom_point(data = New_Ts, mapping = aes(x = lon, y = lat), color = "red")
  </code></pre>
  
  <p>It works when I tried on Rstudio console but when I do Knit from Rmarkdown. It gives me following error:</p>
  
  <pre><code>Error in FUN(X[[i]], ...) : object 'lon' not found
  Calls: &lt;Anonymous&gt; ... by_layer -&gt; f -&gt; &lt;Anonymous&gt; -&gt; f -&gt; lapply -&gt; FUN -&gt; FUN
  
  Execution halted 
  </code></pre>
  
  <p>I tried to delete "lon" object and did again knit but still it gives me same error.</p>
  
  <p>Thanks in Advance</p>