data-raw/create_sysdata.R

# the following script allows for reproducible recreation of the
# R/sysdata.rda file used to automatically generate roxygen
# documentation for packages outputted by the package.

# read in the raw .R files for the desired documentation
weather_lines <- readLines("data-raw/weather.R")
planes_lines <- readLines("data-raw/planes.R")
flights_lines <- readLines("data-raw/flights.R")
airlines_lines <- readLines("data-raw/airlines.R")
airports_lines <- readLines("data-raw/airports.R")

# create the sysdata .Rda object that will be built internally
sysdata <- list(weather = weather_lines,
                planes = planes_lines,
                flights = flights_lines,
                airlines = airlines_lines,
                airports = airports_lines)

# save sysdata to file
save(sysdata, file = "R/sysdata.rda")
simonpcouch/anyflights documentation built on Jan. 18, 2025, 4:37 a.m.