Skip to content

Commit

Permalink
Review: simplify necessary pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
klau506 committed Mar 26, 2024
1 parent 65a872a commit 21a1643
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Imports:
usethis,
knitr,
markdown,
rlang,
readr,
data.table,
magrittr,
dplyr,
tibble,
tidyr,
rgcam,
ggplot2,
stringr,
stringi,
here,
xml2,
shiny,
Expand All @@ -42,6 +38,8 @@ Imports:
rrapply (>= 1.2.6),
rpackageutils
Suggests:
usethis,
knitr,
rprojroot,
rmarkdown,
testthat (>= 3.0.0),
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ RUN R -e "remotes::install_github('JGCRI/rgcam')"
RUN R -e "install.packages('knitr')"
RUN R -e "install.packages('markdown')"
RUN R -e "install.packages('readr')"
RUN R -e "install.packages('stringi')"
RUN R -e "install.packages('rlang')"
RUN R -e "install.packages('readr')"
RUN R -e "install.packages('data.table')"
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export(update_user_choices_plot)
import(dplyr)
import(ggplot2)
import(rgcam)
importFrom(data.table,as.data.table)
importFrom(dplyr,anti_join)
importFrom(dplyr,bind_rows)
importFrom(dplyr,distinct)
Expand Down
4 changes: 2 additions & 2 deletions R/app_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ reset_first_load <- function() {
#' @keywords internal
#' @importFrom magrittr %>%
#' @importFrom dplyr filter select
#' @importFrom data.table as.data.table
#' @importFrom tibble as_tibble
#' @return subseted dataset
#' @export
do_data_sample <- function(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg,
Expand Down Expand Up @@ -260,7 +260,7 @@ do_data_sample <- function(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_r
filter(Variable %in% vars) %>%
filter(Region %in% reg) %>%
select(c(sel_cols, sel_years)) %>%
as.data.table()
as_tibble()

return(data_sample)
}
Expand Down

0 comments on commit 21a1643

Please sign in to comment.