Skip to content

Commit

Permalink
truly drop rgdal, #91
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed Apr 19, 2023
1 parent 263e839 commit e775234
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 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 @@ -33,7 +33,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ importFrom(httr,write_disk)
importFrom(memoise,cache_memory)
importFrom(memoise,memoise)
importFrom(purrr,transpose)
importFrom(rgdal,ogrInfo)
importFrom(rlang,.data)
importFrom(rlang,quo)
importFrom(rvest,html_attrs)
Expand Down
5 changes: 2 additions & 3 deletions R/info.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
#' @param state character
#' @param dsn character
#' @export
#' @importFrom rgdal ogrInfo
#' @return An ogrinfo object from the sf package
#' @return A column-wise summary of an sf read from the specfied layer
#'
#' @examples \dontrun{
#' nhd_info("DC", "NHDWaterbody")
#' }
nhd_info <- function(state, dsn) {
rgdal::ogrInfo(gdb_path(state), dsn)
summary(sf::st_read(gdb_path(state), layer = dsn, quiet = TRUE))
}

#' Return NHDplus layer metadata and field listing
Expand Down
2 changes: 1 addition & 1 deletion man/nhd_info.Rd

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

0 comments on commit e775234

Please sign in to comment.