Skip to content

Commit

Permalink
use donttest due to slowdowns on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Oct 16, 2023
1 parent 87d667f commit 1ecc24e
Show file tree
Hide file tree
Showing 74 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion R/address_ranges.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_address_ranges("DE", county = "001"))
#' \donttest{try(tt_address_ranges("DE", county = "001"))} # downloads slow on CRAN
tt_address_ranges <- function(state, county, year = 2022) {

years_okay(year, okay = 2011:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/anrc.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_anrc())
#' \donttest{try(tt_anrc())} # downloads slow on CRAN
tt_anrc <- function(year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/area_landmarks.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_area_landmarks("DE"))
#' \donttest{try(tt_area_landmarks("DE"))} # downloads slow on CRAN
tt_area_landmarks <- function(state, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/area_water.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_area_water("DE"))
#' \donttest{try(tt_area_water("DE"))} # downloads slow on CRAN
tt_area_water <- function(state, county, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/block_groups.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_block_groups(state = "DE", county = "001"))
#' \donttest{try(tt_block_groups(state = "DE", county = "001"))} # downloads slow on CRAN
tt_block_groups <- function(state, county, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/cbsa.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_cbsa())
#' \donttest{try(tt_cbsa())} # downloads slow on CRAN
#' }
tt_cbsa <- function(year = 2021) {
years_okay(year, 2010:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/coastline.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_coastline())
#' \donttest{try(tt_coastline())} # downloads slow on CRAN
#' }
tt_coastline <- function(year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/congressional_districts.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_congressional_districts())
#' \donttest{try(tt_congressional_districts())} # downloads slow on CRAN
#' }
tt_congressional_districts <- function(state, year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/consolidated_cities.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_consolidated_cities("CT"))
#' \donttest{try(tt_consolidated_cities("CT"))} # downloads slow on CRAN
tt_consolidated_cities <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/counties.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_counties(state = "DE"))
#' \donttest{try(tt_counties(state = "DE"))} # downloads slow on CRAN
#' }
tt_counties <- function(state, year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/county_subdivisions.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_county_subdivisions("DE"))
#' \donttest{try(tt_county_subdivisions("DE"))} # downloads slow on CRAN
tt_county_subdivisions <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/elementary_school_districts.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_elementary_school_districts("AZ"))
#' \donttest{try(tt_elementary_school_districts("AZ"))} # downloads slow on CRAN
tt_elementary_school_districts <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/estates.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_estates())
#' \donttest{try(tt_estates())} # downloads slow on CRAN
tt_estates <- function(year = 2022) {

years_okay(year, 2012:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/linear_water.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_linear_water("DE"))
#' \donttest{try(tt_linear_water("DE"))} # downloads slow on CRAN
tt_linear_water <- function(state, county, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/metropolitan_divisions.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_metropolitan_divisions())
#' \donttest{try(tt_metropolitan_divisions())} # downloads slow on CRAN
tt_metropolitan_divisions <- function(year = 2021) {

years_okay(year, 2010:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/military.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_military())
#' \donttest{try(tt_military())} # downloads slow on CRAN
tt_military <- function(year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/new_england_city.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_new_england_cities())
#' \donttest{try(tt_new_england_cities())} # downloads slow on CRAN
tt_new_england_cities <- function(year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/new_england_city_divisions.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_new_england_city_divisions())
#' \donttest{try(tt_new_england_city_divisions())} # downloads slow on CRAN
tt_new_england_city_divisions <- function(year = 2021) {

years_okay(year, 2010:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/new_england_combined_areas.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_new_england_combined_areas())
#' \donttest{try(tt_new_england_combined_areas())} # downloads slow on CRAN
tt_new_england_combined_areas <- function(year = 2021) {

years_okay(year, 2010:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/places.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_places("DE"))
#' \donttest{try(tt_places("DE"))} # downloads slow on CRAN
tt_places <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/point_landmarks.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_point_landmarks("DE"))
#' \donttest{try(tt_point_landmarks("DE"))} # downloads slow on CRAN
tt_point_landmarks <- function(state, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/polygon_edges.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_polygon_edges("DE", county = "001"))
#' \donttest{try(tt_polygon_edges("DE", county = "001"))} # downloads slow on CRAN
tt_polygon_edges <- function(state, county, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/polygon_faces.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_polygon_faces("DE", county = "001"))
#' \donttest{try(tt_polygon_faces("DE", county = "001"))} # downloads slow on CRAN
tt_polygon_faces <- function(state, county, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/primary_roads.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_primary_roads())
#' \donttest{try(tt_primary_roads())} # downloads slow on CRAN
#' }
tt_primary_roads <- function(year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/primary_secondary_roads.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_primary_secondary_roads("DE"))
#' \donttest{try(tt_primary_secondary_roads("DE"))} # downloads slow on CRAN
tt_primary_secondary_roads <- function(state, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/puma.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_puma("DE"))
#' \donttest{try(tt_puma("DE"))} # downloads slow on CRAN
tt_puma <- function(state, year = 2021) {

years_okay(year, 2012:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/rails.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_rails())
#' \donttest{try(tt_rails())} # downloads slow on CRAN
#' }
tt_rails <- function(year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/roads.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_roads("DE"))
#' \donttest{try(tt_roads("DE"))} # downloads slow on CRAN
tt_roads <- function(state, county, year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/secondary_school_districts.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_secondary_school_districts("AZ"))
#' \donttest{try(tt_secondary_school_districts("AZ"))} # downloads slow on CRAN
tt_secondary_school_districts <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/state_leg_lower.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_state_leg_lower("DE"))
#' \donttest{try(tt_state_leg_lower("DE"))} # downloads slow on CRAN
tt_state_leg_lower <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/state_leg_upper.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_state_leg_lower("DE"))
#' \donttest{try(tt_state_leg_lower("DE"))} # downloads slow on CRAN
tt_state_leg_upper <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/subbarrio.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_subbarrios())
#' \donttest{try(tt_subbarrios())} # downloads slow on CRAN
tt_subbarrios <- function(year = 2022) {

years_okay(year, 2016:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/tract.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_tracts(state = "DE", county = "001"))
#' \donttest{try(tt_tracts(state = "DE", county = "001"))} # downloads slow on CRAN
tt_tracts <- function(state, county, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/uac.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_uac())
#' \donttest{try(tt_uac())} # downloads slow on CRAN
#' }
tt_uac <- function(year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion R/unified_school_districts.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_unified_school_districts("DE"))
#' \donttest{try(tt_unified_school_districts("DE"))} # downloads slow on CRAN
tt_unified_school_districts <- function(state, year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/voting_districts.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_voting_districts("DE", county = "001"))
#' \donttest{try(tt_voting_districts("DE", county = "001"))} # downloads slow on CRAN
tt_voting_districts <- function(state, county, year = 2022) {

year <- year - (year %% 10)
Expand Down
2 changes: 1 addition & 1 deletion R/zcta.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @examples
#' \donttest{ # takes > 5 seconds
#' # Wrapped in try due to false positive 304 errors
#' try(tt_zcta())
#' \donttest{try(tt_zcta())} # downloads slow on CRAN
#' }
tt_zcta <- function(year = 2022) {

Expand Down
2 changes: 1 addition & 1 deletion man/tt_address_ranges.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/tt_anrc.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/tt_area_landmarks.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/tt_area_water.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/tt_block_groups.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/tt_cbsa.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/tt_coastline.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/tt_congressional_districts.Rd

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

Loading

0 comments on commit 1ecc24e

Please sign in to comment.