Skip to content

Commit

Permalink
BTS now uses https
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jun 26, 2018
1 parent cf1407e commit eb04172
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/airlines.R
Expand Up @@ -2,7 +2,7 @@
#'
#' Look up airline names from their carrier codes.
#'
#' @source http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236
#' @source https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236
#' @format Data frame with columns
#' \describe{
#' \item{carrier}{Two letter abbreviation}
Expand Down
2 changes: 1 addition & 1 deletion R/flights.R
Expand Up @@ -4,7 +4,7 @@
#' 2013.
#'
#' @source RITA, Bureau of transportation statistics,
#' <http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236>
#' <https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236>
#' @format Data frame with columns
#' \describe{
#' \item{year,month,day}{Date of departure}
Expand Down
2 changes: 1 addition & 1 deletion data-raw/airlines.R
@@ -1,7 +1,7 @@
library(dplyr)
library(readr)

raw <- read_csv("http://www.transtats.bts.gov/Download_Lookup.asp?Lookup=L_UNIQUE_CARRIERS")
raw <- read_csv("https://www.transtats.bts.gov/Download_Lookup.asp?Lookup=L_UNIQUE_CARRIERS")

load("data/flights.rda")

Expand Down
2 changes: 1 addition & 1 deletion data-raw/flights.R
Expand Up @@ -2,7 +2,7 @@ library(dplyr)
library(readr)

flight_url <- function(year = 2013, month) {
base_url <- "http://www.transtats.bts.gov/PREZIP/"
base_url <- "https://www.transtats.bts.gov/PREZIP/"
sprintf(paste0(base_url, "On_Time_On_Time_Performance_%d_%d.zip"), year, month)
}

Expand Down
2 changes: 1 addition & 1 deletion man/airlines.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/flights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb04172

Please sign in to comment.