To recreate the package example data run the following command from the data-raw directory root:
./create.sh -k "<YOUR API KEY>"
Note: A HERE API key is required and the following R packages are required:
data.table
, sf
and hereR
.
To read the example data from the package use:
aoi <-
"example.gpkg" %>% system.file(package="drtplanr") %>%
sf::st_read(layer = "aoi", quiet = TRUE)
pop <-
"example.gpkg" %>% system.file(package="drtplanr") %>%
sf::st_read(layer = "pop", quiet = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.