Skip to content

Commit 7287ced

Browse files
committed
add descriptions of applicatio files and packages used
1 parent 4e0aa91 commit 7287ced

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

adrg/_adrg.qmd

+26-20
Original file line numberDiff line numberDiff line change
@@ -276,33 +276,37 @@ Not Applicable. This pilot project only submits programs for analysis results.
276276

277277
The Shiny application included in this pilot follows a different structure than a traditional collection of analysis programs such as those included in the Pilot 1 eCTD transfer. The application is developed with a modular approach and assembled with the [`rhino`](https://appsilon.github.io/rhino/) R package for enhanced code organization. At the time of this submission, the [`golem`](https://thinkr-open.github.io/golem/) R package is not supported by [`webR`](https://docs.r-wasm.org/webr/latest/). A description of the primary scripts used within the application is given in the table below. The recommended steps to execute the Shiny application are described in Appendix 2.
278278

279-
::: callout-caution
280-
Determine a concise way to summarize the new application directory structure.
281-
:::
282-
283279
```{r}
284280
#| label: pilot4-programs
285-
#| eval: false
286-
pilot4_programs_df <- tibble::tibble(
287-
name = c("app.R", "app_teal.R", "tm_t_demographic.R", "tm_g_kmplot.R", "tm_t_primary.R", "tm_t_efficacy.R", "tm_t_disposition.R"),
288-
purpose = c("Facilitate execution of Shiny application in a local R session or deployed on a server",
289-
"Assemble the application modules for use with the Teal package",
290-
"Shiny module for demographic and baseline characteristics analysis",
291-
"Shiny module for Kaplan-Meier plot of time to first dermatologic event",
292-
"Shiny module for primary endpoint analysis ADAS Cog (11)",
293-
"Shiny module for primary endpoint analysis Glucose (mmol/L)",
294-
"Shiny module for summary of number of patients completing each visit in treatment period")
281+
#| eval: true
282+
pilot4_programs_df <- tibble::tribble(
283+
~name, ~directory, ~purpose,
284+
"app.R", "", "Facilitate execution of Shiny application",
285+
"adam_data.R", "logic", "Functions to import AdAM data files",
286+
"eff_models.R", "logic", "Functions to perform statistical models and inferences used in output tables",
287+
"formatters.R", "logic", "Functions to perform formatting of numerical results",
288+
"helpers.R", "logic", "Supporting functions related to table output formatting and other operations",
289+
"kmplot_helpers.R", "logic", "Functions to support creation of Kaplan-Meier plot",
290+
"Tplyr_helpers.R", "logic", "Functions to support nesting of row labels in summary tables produced by the Tplyr package",
291+
"completion_table.R", "views", "Shiny module for visit completion summary table",
292+
"demographic_table.R", "views", "Shiny module for demographic summary table",
293+
"efficacy_table", "views", "Shiny module for secondary endpoints efficacy table",
294+
"km_plot_filter.R", "views", "Shiny module for data filter widgets used in Kaplan-Meier visualization module",
295+
"km_plot.R", "views", "Shiny module for Kaplan-Meier visualization",
296+
"primary_table.R", "views", "Shiny module for primary efficacy analysis summary table",
297+
"user_guide.R", "views", "Shiny module for application user guide"
295298
)
296299
297300
pilot4_programs_df_kbl <- kbl(
298301
pilot4_programs_df,
299-
col.names = c("Program Name", "Purpose")
302+
col.names = c("Program Name", "Directory", "Purpose")
300303
)
301304
302305
pilot4_programs_df_kbl %>%
303306
kable_styling(latex_options = c("HOLD_position")) %>%
304307
column_spec(1, width = "10em") %>%
305-
column_spec(2, width = "20em")
308+
column_spec(2, width = "10em") %>%
309+
column_spec(3, width = "20em")
306310
```
307311

308312
For reference, below is a description of the analysis programs utilized in Pilot 1.
@@ -350,21 +354,23 @@ pilot1_programs_df_kbl %>%
350354

351355
The following table lists the open-source R packages used to create and execute the Shiny application in this pilot.
352356

353-
::: callout-caution
354-
Determine a concise way to summarize the packages used in this application. We should also include `{shinylive}` for compiling the application
357+
::: callout-note
358+
While the rhino package was used to create the application structure, it is not required to execute the application and thus was not included in the table.
355359
:::
356360

357361
```{r}
358362
#| label: open-packages-pilot4
359363
#| echo: false
360364
#| message: false
361-
#| eval: false
365+
#| eval: true
362366
library(dplyr)
363367
library(purrr)
364368
365-
pkg <- renv::dependencies("app/app.R", root = "app") |>
369+
pkg <- renv::dependencies("../app/app.R", root = "app", quiet = TRUE, progress = FALSE) |>
366370
dplyr::pull(Package)
367371
372+
pkg <- sort(c(pkg, "shinylive"))
373+
368374
# custom code to obtain package title and version
369375
pkg_desc_df <- tibble::tibble(package = pkg) %>%
370376
mutate(title = purrr::map_chr(package, ~utils::packageDescription(.x, fields = "Title"))) %>%

0 commit comments

Comments
 (0)