Skip to content

Instantly share code, notes, and snippets.

@layik
Created March 3, 2020 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save layik/5bab74534ba83fa1b67be7a3b12d54aa to your computer and use it in GitHub Desktop.
Save layik/5bab74534ba83fa1b67be7a3b12d54aa to your computer and use it in GitHub Desktop.
library(httr)
r <- GET("localhost:27017")
if(r$status_code != "200") {
stop("Is Mongo running?")
}
devtools::load_all(".")
library(geocoder)
gc_import(geocoder::uk.geocodes$msoa$url)
# check
m = mongolite::mongo("geocoder")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment