knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) options(warn=-1)
The idea of tidygeoRSS is to parse 'geo' feeds -- RSS, Atom and JSON -- and return them as tibbles complete with the geographical information in a way that is compatible with the sf library.
For more information on these formats, see:
You can install the released version of tidygeoRSS from CRAN with:
``` {r eval = FALSE} install.packages("tidygeoRSS")
And the development version from [GitHub](https://github.com/RobertMyles/tidygeoRSS) with:
```r
# install.packages("remotes")
remotes::install_github("RobertMyles/tidygeoRSS")
tidygeoRSS relies on sf, which also relies on some system dependencies, so you will most likely have to install certain things before using tidygeoRSS. More information is available here.
library(tidygeoRSS) tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson")
tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.atom")
tidygeo("http://www.geograph.org.uk/syndicator.php?format=GeoRSS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.