A Twitter bot π€π¦ that shares random satellite images from Portugal π°οΈπ΅πΉ. Adapted from the londonmapbot Twitter bot created by Matt Dray. Spatial data obtained via GADM.
- londonmapbot by Matt Dray.
- chicagomapbot by Leo Torres.
- esmapbot by Rober J.
- Spatial data from Portugal by GADM (Wikipedia page).
Posted images are copyright of Mapbox/OpenStreetMap/Maxar. This information is embedded in every image.
R version 3.6.3
options(styler.save_after_styling = TRUE)
.
install.packages("rtweet", dependencies = TRUE)
.install.packages("sf", dependencies = TRUE)
.- {groundhog} package:
- Alternative to {renv}.
install.packages("groundhog")
orinstall.packages("groundhog", dependencies = TRUE)
.groundhog.library
documentation.- Repo.
groundhog::get.groundhog.folder()
.- Main folder.
- setup-r repo.
rstudioapi::versionInfo()
.- Header:
https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/-6.7212,41.62,4,0/1280x500@2x?access_token=
. - Twitter sizes.
- GitHub Actions:
- Supported runners.
- Preinstalled software.
- macOS Catalina 10.15:
macos-10.15
ormacos-latest
. Homebrew is available.
- Install {sf} on macOS.
- act:
- Run GitHub Actions locally.
brew install act
.- It does not support macOS runners.
brew info gdal
andgdalinfo --version
.- post_tweet() hangs when including media issue.