I'm doing relatively simple things with ggmap and am confused because code that runs fine on my mac does not run on my PC.
I run this code:
library(ggmap)
map <- get_map(location = c(-122.175, 37.45635),
maptype = "terrain",
source = "google",
crop = FALSE,
zoom = 7)
ggmap(map)
, which runs fine on my mac, but throws this error on my PC:
Error in as.vector(y) : attempt to apply non-function
Any help would be much appreciated.