Skip to content

Commit

Permalink
account for different info return structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed Apr 19, 2023
1 parent e775234 commit 7fb3c17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ test_that("info functions work", {
skip_on_ci()

res <- nhd_plus_info(vpu = 4, component = "NHDSnapshot", dsn = "NHDWaterbody")
expect_equal(length(res$iteminfo$name),
12)
expect_equal(length(unique(as.data.frame(res)$Var2)),
13)

nhd_get("DC")
res <- nhd_info("DC", "NHDWaterbody")
expect_equal(length(res$iteminfo$name),
13)
expect_equal(length(unique(as.data.frame(res)$Var2)),
14)

# works with dbf layers
nhd_plus_get(1, "NHDPlusAttributes")
Expand Down

0 comments on commit 7fb3c17

Please sign in to comment.