Skip to content

Commit

Permalink
suggest tidyhdat vs depends as per #7
Browse files Browse the repository at this point in the history
  • Loading branch information
NewGraphEnvironment committed Jun 27, 2024
1 parent 0a3b3cb commit 1fa8e3e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Imports:
rlang,
ggdark,
ggplot2,
tidyhydat,
cli
Remotes:
poissonconsulting/fwapgr,
Suggests:
rayshader,
elevatr,
fasstr,
tidyhydat,
testthat (>= 3.0.0)
Config/testthat/edition: 3
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 1 addition & 2 deletions R/fpr_create_hydrograph.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)) {
Expand Down

0 comments on commit 1fa8e3e

Please sign in to comment.