Skip to content

Commit

Permalink
for cli and rstudioapi functions, added to imports and added importFr…
Browse files Browse the repository at this point in the history
…om in each function
  • Loading branch information
nsbatra committed Sep 6, 2022
1 parent fd26e4f commit 2d99280
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Imports:
broom,
patchwork,
clipr,
cli,
rstudioapi,
dplyr (>= 0.8.0),
tidyr (>= 1.0.0),
rlang (>= 0.4.0),
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export(tab_univariate)
export(unite_ci)
export(zcurve)
importFrom(apyramid,age_pyramid)
importFrom(cli,cli_alert_success)
importFrom(dplyr,count)
importFrom(epidict,gen_data)
importFrom(epidict,msf_dict)
Expand Down Expand Up @@ -99,6 +100,7 @@ importFrom(glue,glue)
importFrom(rlang,"!!")
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rstudioapi,selectDirectory)
importFrom(scales,percent_format)
importFrom(stats,setNames)
importFrom(tibble,as_tibble)
3 changes: 3 additions & 0 deletions R/download_kobo.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_kobo <- function(path = rstudioapi::selectDirectory()){

Expand Down
3 changes: 3 additions & 0 deletions R/download_outbreak_linelist.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_outbreak_linelist <- function(path = rstudioapi::selectDirectory()){

Expand Down
3 changes: 3 additions & 0 deletions R/download_outbreak_pop.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_outbreak_pop <- function(path = rstudioapi::selectDirectory()){

Expand Down
3 changes: 3 additions & 0 deletions R/download_shape_block.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_shape_block <- function(path = rstudioapi::selectDirectory()){

Expand Down
3 changes: 3 additions & 0 deletions R/download_shape_quartier.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_shape_quartier <- function(path = rstudioapi::selectDirectory()){

Expand Down
3 changes: 3 additions & 0 deletions R/download_survey.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#'
#' @param path **Run with no arguments to pick a directory interactively**. Path on your computer where the file(s) should be saved to *string*
#'
#' @importFrom rstudioapi selectDirectory
#' @importFrom cli cli_alert_success
#'
#' @export
download_survey <- function(path = rstudioapi::selectDirectory()){

Expand Down

0 comments on commit 2d99280

Please sign in to comment.