我正在使用R app,我的serv.R文件
绘制ggmapmapImageData1 <- get_map(location = c(lon = -0.016179, lat = 51.538525),
color = "color",
source = "google",
maptype = "satellite",
zoom = 17)
p<-ggmap(mapImageData1,
extent = "device",
ylab = "Latitude",
xlab = "Longitude")
print(p)
在UI上显示以下错误
Error:cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=51.538525,-0.016179&zoom=17&size=%20640x640&scale=%202&maptype=satellite&sensor=false'
在应用程序文件夹&#39; ggmapTemp.png&#39;正在生成,但它是0字节。
同样在日志中显示:
Warning in download.file(url, destfile = destfile, quiet = !messaging, mode = "wb") :
unable to connect to 'maps.googleapis.com' on port 80.
Error in download.file(url, destfile = destfile, quiet = !messaging, mode = "wb") :
cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=51.538525,-0.016179&zoom=17&size=%20640x640&scale=%202&maptype=satellite&sensor=false'
我已通过r控制台检查了互联网。 任何人都有任何想法
提前致谢..