Skip to content

Commit

Permalink
wrap donttests
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Oct 16, 2023
1 parent dbd91cc commit 87d667f
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 16 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# tinytiger 0.0.7

* Wrap slow downloads in `\donttest{}`

# tinytiger 0.0.6

* Resolves a CRAN check error when a 503 occurs.
Expand Down
2 changes: 1 addition & 1 deletion R/ai_an_nh_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_ai_an_nh_areas())
#' \donttest{try(tt_ai_an_nh_areas())}
tt_ai_an_nh_areas <- function(year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/blocks.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_blocks(state = "DE", county = "001"))
#' \donttest{try(tt_blocks(state = "DE", county = "001"))}
tt_blocks <- function(state, county, year = 2022) {

if (missing(state)) {
Expand Down
3 changes: 1 addition & 2 deletions R/csa.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
#'
#' @examples
#' # Wrapped in try due to false positive 304 errors
#' try(tt_csa())
#'
#' \donttest{try(tt_csa())}
tt_csa <- function(year = 2021) {

years_okay(year, 2010:2021)
Expand Down
2 changes: 1 addition & 1 deletion R/states.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_states())
#' \donttest{try(tt_states())}
tt_states <- function(year = 2022) {

years_okay(year)
Expand Down
2 changes: 1 addition & 1 deletion R/tribal_block_groups.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_tribal_block_groups())
#' \donttest{try(tt_tribal_block_groups())}
tt_tribal_block_groups <- function(year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/tribal_subdivisions.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_tribal_subdivisions())
#' \donttest{try(tt_tribal_subdivisions())}
tt_tribal_subdivisions <- function(year = 2022) {

years_okay(year, 2015:2022)
Expand Down
2 changes: 1 addition & 1 deletion R/tribal_tracts.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_tribal_tracts())
#' \donttest{try(tt_tribal_tracts())}
tt_tribal_tracts <- function(year = 2022) {

years_okay(year, 2010:2022)
Expand Down
2 changes: 1 addition & 1 deletion man/tt_ai_an_nh_areas.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_blocks.Rd

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

3 changes: 1 addition & 2 deletions man/tt_csa.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_states.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_tribal_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_tribal_subdivisions.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_tribal_tracts.Rd

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

0 comments on commit 87d667f

Please sign in to comment.