Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Jan 24, 2025
1 parent 85379be commit 887a405
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: hfsubsetR
Type: Package
Title: Hydrofabric Subsetter
Description: Subset Hydrofabric Data in R.
Version: 0.3.2
Version: 0.3.3
Authors@R:
c(person(given = "Mike",
family = "Johnson",
Expand All @@ -11,8 +11,8 @@ Authors@R:
person(given = "Justin", family = "Singh-Mohudpur",
role = c("aut")))
Maintainer: Mike Johnson <[email protected]>
BugReports: https://github.com/lynker-spatial/hfsubsetR
URL: https://github.com/lynker-spatial/hfsubsetR
BugReports: https://github.com/owp-spatial/hfsubsetR
URL: https://github.com/owp-spatial/hfsubsetR
Depends:
R (>= 4.2)
Imports:
Expand Down
6 changes: 3 additions & 3 deletions R/sf_arrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create_metadata <-
function(df,
hf_version = "2.2",
license = "ODbL",
source = "lynker-spatial") {
source = "spatial.water.noaa.gov") {

warning(strwrap(glue("This is writing {source} supported metadata for hydrofabric version {hf_version}.
Use of the data follows an {license} license."),
Expand Down Expand Up @@ -209,7 +209,7 @@ st_read_parquet <- function(dsn, col_select = NULL,
st_write_parquet <- function(obj, dsn,
hf_version = "2.2",
license = "ODbL",
source = "lynker-spatial",
source = "spatial.water.noaa.gov",
...) {
if (!inherits(obj, "sf")) { stop("Must be sf data format") }

Expand Down Expand Up @@ -306,7 +306,7 @@ write_sf_dataset <- function(obj,
partitioning = dplyr::group_vars(obj),
hf_version = "2.2",
license = "ODbL",
source = "lynker-spatial",
source = "spatial.water.noaa.gov",
...) {
if (!inherits(obj, "sf")) {
stop("Must be an sf data format. Use arrow::write_dataset instead")
Expand Down
13 changes: 7 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ knitr::opts_chunk$set(
gpkg = '/Users/mikejohnson/hydrofabric/conus_nextgen.gpkg'
```

# hfsubsetR <a href="https://github.com/lynker-spatial/hfsubsetR"><img src="man/figures/logo.png" align="right" width="25%"/></a>
# hfsubsetR <a href="https://github.com/owp-spatial/hfsubsetR"><img src="man/figures/logo.png" align="right" width="25%"/></a>

<!-- badges: start -->
[![R CMD Check](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml)
[![Test coverage](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/test-coverage.yaml)
[![Dependencies](https://img.shields.io/badge/dependencies-8/71-orange?style=flat)](#)
[![R CMD Check](https://github.com/owp-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/owp-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml)
[![Test coverage](https://github.com/owp-spatial/hfsubsetR/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/owp-spatial/hfsubsetR/actions/workflows/test-coverage.yaml)
[![Dependencies](https://img.shields.io/badge/dependencies-9/69-orange?style=flat)](#)
[![License: GPL (>= 3)](https://img.shields.io/badge/License-GPL%20%28%3E%3D%203%29-blue.svg)](https://choosealicense.com/licenses/gpl-3.0/)
<!-- badges: end -->

The goal of `hfsubsetR` is to extract hydrofabric subsets from cloud or local archives built in `lynker-spatial`.
The goal of `hfsubsetR` is to extract hydrofabric subsets from cloud or local archives built in `spatial.water.noaa.gov`.

## Installation

You can install the development version of `hfsubsetR` from [GitHub](https://github.com/) with:

``` r
# install.packages("remotes")
remotes::install_github("lynker-spatial/hfsubsetR")
remotes::install_github("owp-spatial/hfsubsetR")
```

```{r}
Expand All @@ -49,6 +49,7 @@ gpkg <- './conus_nextgen.gpkg'
get_hydrofabric(outfile = gpkg)
```

From that, we can extract data for a VPU:

```{r, eval = FALSE}
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# hfsubsetR <a href="https://github.com/lynker-spatial/hfsubsetR"><img src="man/figures/logo.png" align="right" width="25%"/></a>
# hfsubsetR <a href="https://github.com/owp-spatial/hfsubsetR"><img src="man/figures/logo.png" align="right" width="25%"/></a>

<!-- badges: start -->

[![R CMD
Check](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml)
Check](https://github.com/owp-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/owp-spatial/hfsubsetR/actions/workflows/R-CMD-check.yaml)
[![Test
coverage](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/lynker-spatial/hfsubsetR/actions/workflows/test-coverage.yaml)
[![Dependencies](https://img.shields.io/badge/dependencies-8/71-orange?style=flat)](#)
coverage](https://github.com/owp-spatial/hfsubsetR/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/owp-spatial/hfsubsetR/actions/workflows/test-coverage.yaml)
[![Dependencies](https://img.shields.io/badge/dependencies-9/69-orange?style=flat)](#)
[![License: GPL (\>=
3)](https://img.shields.io/badge/License-GPL%20%28%3E%3D%203%29-blue.svg)](https://choosealicense.com/licenses/gpl-3.0/)
<!-- badges: end -->

The goal of `hfsubsetR` is to extract hydrofabric subsets from cloud or
local archives built in `lynker-spatial`.
local archives built in `spatial.water.noaa.gov`.

## Installation

Expand All @@ -24,7 +24,7 @@ You can install the development version of `hfsubsetR` from

``` r
# install.packages("remotes")
remotes::install_github("lynker-spatial/hfsubsetR")
remotes::install_github("owp-spatial/hfsubsetR")
```

``` r
Expand Down

0 comments on commit 887a405

Please sign in to comment.