From e2240c6fba3dc348467cf8068628c69c2be003e8 Mon Sep 17 00:00:00 2001 From: Whalen Dillon Date: Thu, 4 Dec 2025 08:37:19 -0500 Subject: [PATCH 1/2] Add default value for year parameter in get_planes Make default NULL because FAA doesn't provide data by year. --- R/get_planes.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/get_planes.R b/R/get_planes.R index c7f4ff0..ac13dc7 100644 --- a/R/get_planes.R +++ b/R/get_planes.R @@ -44,7 +44,7 @@ #' to a data-only package. #' #' @export -get_planes <- function(year, dir = NULL, flights_data = NULL) { +get_planes <- function(year = NULL, dir = NULL, flights_data = NULL) { # check user inputs check_arguments(year = year, From ab777c144a7a6a5759172050dc4352994ce94cf3 Mon Sep 17 00:00:00 2001 From: Whalen Dillon Date: Thu, 8 Jan 2026 15:42:36 -0500 Subject: [PATCH 2/2] Update get_planes.R to include year parameter Add backward-compatibility parameter for year. --- R/get_planes.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/get_planes.R b/R/get_planes.R index ac13dc7..8dd2f07 100644 --- a/R/get_planes.R +++ b/R/get_planes.R @@ -9,6 +9,8 @@ #' @inheritParams anyflights #' #' @inheritParams get_airlines +#' +#' @param year The argument will be ignored and is present only for backward-compatibility #' #' @return A data frame with ~3500 rows and 9 variables: #' \describe{