WORK in PROGRESS and subject to change.
This is a very early attempt to wrap the EUROCONTROL Data API from PoketHost in R.
It will probably result in a more low-level generic package to support PocketBase/PocketHost and a package specific for the EUROCONTROL Data App.
You can install the development version of pockethostr
from
GitHub with:
# install.packages("pak")
pak::pkg_install("euctrl-pru/pockethostr")
List all records in the EUROCONTROL Data app:
library(pockethostr)
app <- "eurocontrol-data-test"
collection <- "nw_traffic"
ph_list_records(
app = "eurocontrol-data-test",
api = "/api/collections/",
collection = "nw_traffic",
sort = "-FLIGHT_DATE")
In order to build the relevant pkgdown web pages, execute the following code:
# How to build the pakgdown from behind proxied Internet
library(withr)
library(pkgdown)
with_options(list(pkgdown.internet = FALSE),
build_site())