You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sponsor has provided all programs for analysis results. They are all created on a Linux platform using R version 4.1.2.
269
+
The sponsor has provided all programs for analysis results. They are all created on a Linux platform using R version 4.4.1.
270
270
271
271
## ADaM Programs
272
272
273
273
Not Applicable. This pilot project only submits programs for analysis results.
274
274
275
-
## Analysis Output Programs
275
+
## Analysis Output Programs {#sec-analysisoutput}
276
276
277
-
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. In addition, the framework used for assembling the Shiny application modules is different than the framework used in the Pilot 2 eCTD transer. 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 (used by Pilot 2) 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.
277
+
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. In addition, the framework used for assembling the Shiny application modules is different than the framework used in the Pilot 2 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 (used by Pilot 2) 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.
278
278
279
279
```{r}
280
280
#| label: pilot4-programs
@@ -311,7 +311,7 @@ pilot4_programs_df_kbl %>%
311
311
312
312
## Application Execution Functions
313
313
314
-
An additional set of R functions are included in the `utils.R` script to support creating and executing the web-assembly version of the application. Descriptions of the key functions are included in the table below. The recommended steps to execute the Shiny application with these functions are outlined in Appendix 1.
314
+
An additional set of R functions are included in the `utils.R` script to support creating and executing the web-assembly version of the application. Descriptions of the key functions are included in the table below. The recommended steps to execute the Shiny application with these functions (along with preparing your environment for evaluating the application) are outlined in @sec-a1.
315
315
316
316
```{r}
317
317
#| label: pilot4-support-functions
@@ -375,7 +375,7 @@ kbl(
375
375
376
376
## List of Output Programs
377
377
378
-
Not Applicable. This pilot project displays analysis output as a Shiny application where the R programs described in the **Analysis Output Programs** as a whole produce the Shiny application.
378
+
Not Applicable. This pilot project displays analysis output as a Shiny application where the R programs described in **Analysis Output Programs** (@sec-analysisoutput) as a whole produce the Shiny application.
379
379
380
380
# Directory Structure
381
381
@@ -410,7 +410,7 @@ dir_df <- tibble::tibble(
410
410
desc = c("Refers to the eCTD module in which clinical study data is being submitted.", "Resides within the module folder as the top-level folder for clinical study data being submitted for m5.", "Study identifier or analysis type performed", "Contains folders for analysis datasets and software programs; arrange in designated level 6 subfolders", "Contains subfolders for ADaM datasets and corresponding software programs", "Contains ADaM datasets, analysis data reviewer’s guide, analysis results metadata and define files", "Contains Shiny application source files bundled as a zip archive")
The R scripts and supporting files for the Shiny application are contained in the `r4app.zip` archive with the following structure (the output below has been truncated for brevity):
424
442
425
443
r4app
@@ -447,8 +465,6 @@ The R scripts and supporting files for the Shiny application are contained in th
447
465
448
466
To install and execute the Shiny application, follow all of the procedures below. Ensure that you note the location of where you downloaded the Pilot 4 eCTD submission files. For demonstration purposes, the procedures below assume the transfer has been saved to this location: `C:\pilot4`.
449
467
450
-
In addition, create a new directory to hold the unpacked Pilot 4 Shiny application files. For demonstration purposes, the procedures below assume the new directory is this location: `C:\pilot4_files`.
451
-
452
468
## Installation of R and RStudio
453
469
454
470
Download and install R 4.4.1 for Windows from <https://cran.r-project.org/bin/windows/base/R-4.4.1-win.exe>. While optional, it is also recommended to use RStudio IDE for executing R code to launch the application. You can download RStudio for Windows by visiting <https://posit.co/download/rstudio-desktop/#download>.
The dependencies for executing the Shiny application are managed by the `renv` R package management system. To bootstrap the customized R package library used for the Shiny application, launch a new R session in the directory where you unpacked the application source files in the previous step. **Choose one of the following options** depending on your R computing environment and preference:
515
+
The dependencies for executing the Shiny application are managed by the `renv` R package management system. To bootstrap the customized R package library used for the Shiny application, launch a new R session in the directory where you unpacked the application source files in the previous step. **Choose one of the following options** depending on your R computing environment and preference.
516
+
517
+
::: callout-note
518
+
Due to certain R packages in the application requiring compilation, the entire package restoration procedure may require at least ten minutes or longer to complete depending on internet bandwidth and your computer's hardware profile.
519
+
520
+
The package library includes all packages required to execute the application in the traditional method, however executing the application in the web-assembly method requires a minimal set of packages. Additional details can be found in @sec-launch .
521
+
:::
500
522
501
523
### Option 1: RStudio {.unnumbered}
502
524
@@ -511,10 +533,6 @@ RStudio will refresh the window and automatically install the `renv` package int
511
533
renv::restore(prompt=FALSE)
512
534
```
513
535
514
-
::: callout-note
515
-
Due to certain R packages in the application requiring compilation, the entire package restoration procedure may require at least ten minutes or longer to complete depending on internet bandwidth and your computer's hardware profile.
516
-
:::
517
-
518
536
Once the package installation process is complete, run the following code to load a set of functions utilized in the remaining steps:
519
537
520
538
```r
@@ -558,7 +576,7 @@ renv::restore(prompt = FALSE)
558
576
Due to certain R packages in the application requiring compilation, the entire package restoration procedure may require at least ten minutes or longer to complete depending on internet bandwidth and your computer's hardware profile.
559
577
:::
560
578
561
-
Once the package installation process is complete, run the following code to load a set of functions utilized in the remaining steps:
579
+
Once the package installation process is complete, you may see a message in the R console stating a new version of the `BiocManager` has been installed and to restart the R session to use that new version. This package is not utilized in the Pilot application, and you do not need to restart your R session. Next, run the following code to load a set of functions utilized in the remaining steps:
562
580
563
581
```r
564
582
source("utils.R")
@@ -584,7 +602,7 @@ The second method involves compiling the application in your R environment. Run
584
602
build_app()
585
603
```
586
604
587
-
## Launch Shiny Application
605
+
## Launch Shiny Application {#sec-launch}
588
606
589
607
### Web-assembly Method
590
608
@@ -594,7 +612,7 @@ The web-assembly version of the Shiny application can be launched with the follo
594
612
run_app_webassembly()
595
613
```
596
614
597
-
A message appears in the R console displaying the web address of the application. To view the application, launch a new web browser session in Microsoft Edge and paste the address in the address bar. By default, the address will be `localhost:7654`.
615
+
A message appears in the R console displaying the web address of the application. To view the application, launch a new web browser session in Microsoft Edge and paste the address in the address bar. By default, the address will be `http://127.0.0.1:7654`.
598
616
599
617
::: callout-note
600
618
If the `build_app()` function was used to compile the application files, you may encounter a slight delay as the web browser installs the R packages. When visiting the application in a future session, these package installations will be cached in your browser's local storage and will render in less time.
0 commit comments