Skip to content

Commit

Permalink
devtools::check
Browse files Browse the repository at this point in the history
  • Loading branch information
yashshah1995 committed Feb 17, 2025
1 parent 84d2fb8 commit b4b4b85
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 56 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Suggests: dv.manager (>= 2.1.4), jsonlite, rmarkdown, testthat (>=
3.0.0), shinytest2, devtools, knitr, tibble, utils

Config/testthat/edition: 3
Config/testthat/parallel: false
Imports: shiny (>= 1.7.1),dplyr (>= 1.0.7), purrr (>= 0.3.4),
Expand Down
10 changes: 4 additions & 6 deletions R/mod_export_count_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ EXP <- poc(
)
)

#' @describeIn mod_export_counttable_UI
#' Create user interface for the export count table shiny module of \pkg{dv.tables}
#'
#' @param module_id `[character(1)]` A unique ID string to create a namespace. Must match the ID of
#' \code{mod_exp_listings_server()}.
#' \code{mod_export_counttable_server()}.
#'
#' @return A shiny \code{uiOutput} element.
#' @describeIn mod_export_counttable_UI This function creates the user interface for the export count table shiny module.
#' @keywords internal
mod_export_counttable_UI <- function(module_id) { # nolint

Expand All @@ -40,17 +40,15 @@ mod_export_counttable_UI <- function(module_id) { # nolint
}


#' @describeIn mod_export_counttable_server
#' Server logic for the export count table
#'
#' @param module_id The ID for the event count module instance.
#' @param dataset A reactive list containing dataset containing the event data
#' and other meta data
#' @param intended_use_label Either a string indicating the intended use for export, or
#' NULL. The provided label will be displayed prior to the download and will also be included in the exported file.
#' @inheritParams hierarchical_count_table_server
#'
#' @return Event dataset downloaded as a excel
#'
#' @describeIn mod_export_counttable_server This function handles the server logic for the export count table.
#' @keywords internal
mod_export_counttable_server <- function(module_id, dataset,
intended_use_label) {
Expand Down
3 changes: 3 additions & 0 deletions R/mod_hierarchical_count_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ hierarchical_count_table_ui <- function(id) {
#' @param default_group `character(1)|NULL`
#' A default value for the group variable (optional).
#'
#' @param intended_use_label Either a string indicating the intended use for export, or
#' NULL. The provided label will be displayed prior to the download and will also be included in the exported file.
#'
#' @return A reactive value containing the list of subjects in the clicked cell, if applicable.
#'
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/utils-export_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ preprocess_download_table <- function(count_table) {
sep = " \\(",
remove = TRUE,
fill = "right"
) %>%
) |>
dplyr::mutate(dplyr::across(dplyr::ends_with("_per"), ~ sub(")", "", . )))

Check warning on line 75 in R/utils-export_table.R

View workflow job for this annotation

GitHub Actions / Shared / Lintr 🔍 / ghcr.io/boehringer-ingelheim/r_4.3.2_cran_2024.01.12:latest

file=R/utils-export_table.R,line=75,col=77,[spaces_inside_linter] Do not place spaces before parentheses.
}, .init = excelfile)

Expand Down
24 changes: 0 additions & 24 deletions man/add_total_patient.Rd

This file was deleted.

24 changes: 24 additions & 0 deletions man/mod_export_counttable_UI.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions man/mod_export_counttable_server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/mod_hierarchical_count_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions man/preprocess_download_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions man/separate_column.Rd

This file was deleted.

0 comments on commit b4b4b85

Please sign in to comment.