Keep R code running despite Errors?
Using this code function from a previous stackoverflow: R: How to GeoCode a simple address using Data Science Toolbox require("RDSTK") library(httr) library(rjson) geo.dsk <- function(addr){ # single address geocode with data sciences toolkit require(httr) require(rjson) url <- "http://www.datasciencetoolkit.org/maps/api/geocode/json" response <- GET(url,query=list(sensor="FALSE",address=addr)) json <- fromJSON(content(response,type="text")) loc <- json['results'][[1]][[1]]$geometry$location return(c(address=addr,long=loc$lng, lat= loc$lat)) } Now Example Code. This works fine: City<-c(