Skip to content

Commit

Permalink
fix broken cran test
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Jun 30, 2023
1 parent 66db2d1 commit 7dfdaa2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: cvap
Title: Citizen Voting Age Population
Version: 0.1.3
Date: 2023-03-15
Version: 0.1.4
Date: 2023-06-30
Authors@R:
person(given = "Christopher T.",
family = "Kenny",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# cvap 0.1.4
* Resolves a testing error on CRAN

# cvap 0.1.3
* Adds support for 2021 CVAP estimates. Default year updated to 2021.
* Adds a new option to include the "implied" total of the `cvap` columns in `cvap_distribute()` and `cvap_distribute_censable()`. It is named `impl_cvap` and resolves (#2).
Expand Down
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Test environments
* local R installation (Windows 11), R 4.2.2
* local R installation (macOS 11.4), R 4.2.2
* local R installation (Windows 11), R 4.3.1
* local R installation (macOS 11.4), R 4.3.1
* ubuntu 20.04 (on GitHub Actions), (devel and release)
* windows-latest (on GitHub Actions), (release)
* macOS-latest (on GitHub Actions), (release)
Expand All @@ -12,4 +12,4 @@

## Additional Notes

* Removes extra `purrr` dependency to resolve CRAN "NOTE" from check results.
* Adds a test skip for if downloading fails to resolve CRAN testing error.
4 changes: 3 additions & 1 deletion tests/testthat/test-vest_crosswalk.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("vest_crosswalk works", {
cw <- vest_crosswalk('WY')
cw <- NULL
try({cw <- vest_crosswalk('WY')})
skip_if(is.null(cw), message = 'Crosswalk did not download for testing.')
expect_s3_class(cw, 'data.frame')
})

0 comments on commit 7dfdaa2

Please sign in to comment.