From ac0dfd8ad019d6fafcab2d53b2074ae748a5174f Mon Sep 17 00:00:00 2001 From: biopsichas <svajunas.plunge@gmail.com> Date: Wed, 22 Feb 2023 20:14:23 +0200 Subject: [PATCH] small bugs fixed --- DESCRIPTION | 4 ++-- NAMESPACE | 2 ++ R/plot_ps_tile.R | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 251b0e1..66fc484 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -19,6 +19,7 @@ Imports: processx, purrr, readr, + stats, stringr, tibble, tidyr, @@ -26,8 +27,7 @@ Imports: plotly, utils Suggests: - datasets, - stats + datasets License: GPL-3 Encoding: UTF-8 LazyData: true diff --git a/NAMESPACE b/NAMESPACE index 87a589a..dbe1374 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -25,6 +25,7 @@ importFrom(dplyr,"%>%") importFrom(dplyr,arrange) importFrom(dplyr,bind_rows) importFrom(dplyr,case_when) +importFrom(dplyr,count) importFrom(dplyr,distinct) importFrom(dplyr,do) importFrom(dplyr,ends_with) @@ -88,6 +89,7 @@ importFrom(purrr,set_names) importFrom(readr,read_lines) importFrom(readr,write_delim) importFrom(readr,write_lines) +importFrom(stats,density) importFrom(stringr,str_remove) importFrom(stringr,str_replace) importFrom(stringr,str_replace_all) diff --git a/R/plot_ps_tile.R b/R/plot_ps_tile.R index ffc21a5..27d8c9b 100644 --- a/R/plot_ps_tile.R +++ b/R/plot_ps_tile.R @@ -97,7 +97,8 @@ print_avannual_qtile <- function(sim_verify, #' be set in \code{run_swat_verification()} #' @param exclude_lum Character vector to define land uses which are excluded #' in the printed table. -#' +#' @importFrom dplyr count +#' @importFrom stats density #' @importFrom ggplot2 ggplot geom_histogram labs theme_bw theme geom_density aes #' @return Returns ggplot object with histogram and density curve for tile drain from distribution. #' @export -- GitLab