-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback on application execution #28
Comments
thanks @rpodcast ! I was able to reproduce the app from this repo! Several few observations/questions
|
Thank you for the comments @lengning !
Great catch I will update the bundle to include the
That's a good point and I'd like to discuss that more in our next meeting. Give that the app is meant to accompany the static files from pilot 1, it makes more sense now that I think about it to not only make this bundle have a different name, but also to assume that the reviewer has already unpacked the pilot 1 files before unpacking the pilot 2 bundle and running the app.
If we can assume the user has unpacked the pilot 1 files, then it is easy for me to set an overall config option within the |
Thanks for the detail information. Here are my findings while running on RStudio Cloud. The RStudio cloud project has been shared to
submissions-pilot2/vignettes/ectd/r1pkg.txt Line 1375 in eee7e94
|
Is there a way to avoid the step below? We should be inclusive for people who are using other editors.
|
The step Should we use pilot2-fda repo for dry run that following eCTD folder structure? |
I am able to rerun the app from Windows following the instruction. Below are my findings after running in Windows:
Below are my session InFo.
|
Great job with the instructions, @rpodcast. The setup worked for me. As @fb-elong mentioned, some folks may have problems running the left and right double quotation marks. I had to convert those to quotation marks on my Windows PC. |
Excellent instructions, @rpodcast. The tests worked in Windows VM using Method 1 and Method 2 There was a warning during the renv package installation step and several during operation of the launched |
With the application now constructed with
{golem}
and a successful bundling of the app files with{pkglite}
, I'd like to request others on our team to verify the application works successfully for them. I have specific details in the vignettevignettes/adrg-prepare.Rmd
on how the app was bundled as well as how to unpack and execute the app with the{renv}
package environment. To be more specific here are the ways you can help test:Windows-specific Instructions
The following instructions are lifted from the draft ADRG document. If you already have an installation of R version 4.1.2 or later (as well as RStudio), you can disregard the installation step. The only other requirement is to either clone the contents of this repository or to download the
vignettes/ectd/r1pkg.txt
bundle file from this repository before proceeding.Install R and RStudio
If R has not been installed per the instructions detailed in Appendix 1, download and install R 4.1.2 for Windows from https://cran.r-project.org/bin/windows/base/old/4.1.2/R-4.1.2-win.exe. It is also recommended to view the Shiny application within the RStudio IDE. You can download RStudio for Windows by visiting https://www.rstudio.com/products/rstudio/download/#download .
Define Data Files Directory
Create a directory specifically for the ADaM data sets included in the Pilot 1 submission. Copy all of the ADaM data files (ending with extension .xpt) to this directory. For the purposes of these instructions, the directory chosen is
C:\pilot1_adam_data
.Install open-source R packages
A minimum set of R packages are required to ensure the Pilot 2 Shiny application files are successfully unpacked and the custom package environment used for the application is replicated correctly. The first packages to install are the
remotes
andpkglite
packages:Next, install version
0.15.2
of therenv
package:Unpack Shiny Application pkglite bundle
Use the pkglite package to unpack the Shiny application bundle located in the r1pkg.txt text file included in the pilot 2 submission transfer (
m5/datasets/rconsortiumpilot2/analysis/adam/programs/r1pkg.txt
). Take note of the file path wherer1pkg.txt
is located on your system. For the purposes of these instructions, the location isC:\pilot2_files\r1pkg.txt
and run the following R command:After running this command, you should see a new directory
pilot2wrappers
created within the path specified in the output argument in the previous command.Initialize R package environment for Shiny application
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. Within the RStudio IDE, create a new project in the
pilot2wrappers
directory using the following procedure: Select File -> New Project, choose “Existing Directory”, and browse to thepilot2wrappers
location on your computer. Then click “Create Project.”You should see RStudio refresh and start a new session in the specified directory. Within the R console, you will see information from the renv package regarding installation and loading renv into the project. To complete the process of installing the custom R package library for the application, run the following command in the R console:
The package installation procedure may take a few minutes or longer depending on internet bandwidth.
Update Shiny Application Configuration for Data Location
The Shiny application needs one configuration update in order to import the ADaM data sets in the Pilot 1 submission. Using the directory established in step (2) in these instructions, run the following R command:
Launch Shiny Application
Method 1: Open the
app.R
file inside RStudio and click the Run App button within source code windowMethod 2: Run the following R command:
Please add comments to this issue with your feedback. I'll continue to do more testing on my side and add more notes as appropriate.
The text was updated successfully, but these errors were encountered: