Skip to content

Commit

Permalink
import functions and update roxygen
Browse files Browse the repository at this point in the history
 - adds dply mutate, tibble as_tibble, and rlang .data
  • Loading branch information
mps9506 committed Feb 9, 2022
1 parent fd73cd3 commit 1b11a04
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 13 deletions.
16 changes: 10 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ Description: An R interface to the Texas Water Development Board ('TWDB') Water
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
RoxygenNote: 7.1.2
Imports:
crul,
fauxpas,
jsonlite,
readr,
sf
crul,
dplyr,
fauxpas,
jsonlite,
magrittr,
readr,
rlang,
sf,
tibble
BugReports: https://github.com/TxWRI/wd4tx/isssues
URL: https://github.com/TxWRI/wd4tx
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export(download_coastal_geometry)
export(download_coastal_hydrology)
export(download_coastal_site_data)
Expand All @@ -12,8 +13,13 @@ export(download_well_meta)
export(errs)
export(get_download)
importFrom(crul,HttpClient)
importFrom(dplyr,mutate)
importFrom(dplyr,select)
importFrom(fauxpas,find_error_class)
importFrom(jsonlite,fromJSON)
importFrom(magrittr,"%>%")
importFrom(readr,read_csv)
importFrom(rlang,.data)
importFrom(sf,st_as_sf)
importFrom(sf,st_as_sfc)
importFrom(tibble,as_tibble)
5 changes: 4 additions & 1 deletion R/download_coastal_geometry.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' @importFrom sf st_as_sfc
#' @importFrom sf st_as_sf
#' @importFrom jsonlite fromJSON
#' @importFrom dplyr select mutate
#' @importFrom tibble as_tibble
#' @importFrom rlang .data
#' @export
#'
download_coastal_geometry <- function(type,
Expand Down Expand Up @@ -37,7 +40,7 @@ download_coastal_geometry <- function(type,
## be sure to document and provide an example

sf_content <- as_tibble(parsed_content$features %>%
select(-c(geometry, properties))) %>%
select(-c(.data$geometry, .data$properties))) %>%
mutate(geometry = sf::st_as_sfc(content, GeoJSON = TRUE)) %>%
sf::st_as_sf()

Expand Down
10 changes: 8 additions & 2 deletions man/download_coastal_site_data.Rd

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

8 changes: 6 additions & 2 deletions man/download_lep.Rd

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

9 changes: 7 additions & 2 deletions man/download_reservoir.Rd

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

0 comments on commit 1b11a04

Please sign in to comment.