CREA Scraper is part of a larger ecosystem, as shown in the diagram below.
install.packages('devtools')
library(devtools)
url <- "https://github.com/energyandcleanair/rcrea"
devtools::install_github(url)
In .Renviron
, the following variables need to be defined:
-GCS_AUTH_FILE="keys/gcs.shiny.auth.json"
This auth file needs to be manually copied in the inst/shiny/keys
directory.
An online version is available on https://crea.shinyapps.io/shiny/. Otherwise, you can run it locally using:
rcrea::runShinyApp()
Markdowns are available in the examples folder
df_locations <- rcrea::locations(country='IN')
df_measurements <- rcrea::measurements(country='IN', poll=rcrea::PM25, city='Delhi')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.