From 1fa8e3ed73fc034e9e98a83a7d21b2ad201bbf28 Mon Sep 17 00:00:00 2001 From: almac2022 Date: Thu, 27 Jun 2024 13:09:37 -0700 Subject: [PATCH] suggest tidyhdat vs depends as per #7 --- DESCRIPTION | 2 +- NAMESPACE | 2 -- R/fpr_create_hydrograph.R | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f5aed04..e196c30 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -45,7 +45,6 @@ Imports: rlang, ggdark, ggplot2, - tidyhydat, cli Remotes: poissonconsulting/fwapgr, @@ -53,5 +52,6 @@ Suggests: rayshader, elevatr, fasstr, + tidyhydat, testthat (>= 3.0.0) Config/testthat/edition: 3 diff --git a/NAMESPACE b/NAMESPACE index 7cd1072..b6dd11d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -134,7 +134,5 @@ importFrom(stringr,str_subset) importFrom(stringr,str_to_title) importFrom(tibble,as_tibble) importFrom(tibble,rowid_to_column) -importFrom(tidyhydat,hy_daily_flows) -importFrom(tidyhydat,search_stn_number) importFrom(tidyr,pivot_wider) importFrom(tools,file_path_sans_ext) diff --git a/R/fpr_create_hydrograph.R b/R/fpr_create_hydrograph.R index 0967a62..421b83c 100644 --- a/R/fpr_create_hydrograph.R +++ b/R/fpr_create_hydrograph.R @@ -9,7 +9,6 @@ #' @param fig/hydrograph_ hydrograph figure saved to the fig folder #' #' @importFrom lubridate year -#' @importFrom tidyhydat hy_daily_flows search_stn_number #' @importFrom stringr str_to_title #' @importFrom ggdark dark_theme_bw #' @importFrom dplyr mutate group_by summarise @@ -28,7 +27,7 @@ fpr_create_hydrograph <- function( start_year = NULL, end_year = NULL){ - required_packages <- c("fasstr") + required_packages <- c("fasstr", "tidyhydat") for (package in required_packages) { if (!require(package, character.only = TRUE)) {