Skip to content

Commit 8a803ca

Browse files
authored
docs: some wordsmithing and final touches. (#104)
* docs: some wordsmithing and final touches. * chore: remove pilot3 adrg; renv: ignoring adrg files for lock file; adrg: added clarify and small output examples.
1 parent 74a7bdc commit 8a803ca

7 files changed

Lines changed: 69 additions & 1205 deletions

File tree

.renvignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
qcReport.qmd
22
tlf-qc.qmd
3-
build_nixconfig.R
3+
build_nixconfig.R
4+
adrg/

adrg/_adrg.qmd

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -431,17 +431,19 @@ In addition, create a new directory to hold the unpacked Pilot 5 data files and
431431

432432
## Installation of R and RStudio
433433

434-
Download and install R 4.4.3 for Windows from <https://cloud.r-project.org/bin/windows/base/old/4.4.3/R-4.4.3-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>.
434+
Download and install R 4.4.3 for Windows from <https://cloud.r-project.org/bin/windows/base/old/4.4.3/R-4.4.3-win.exe>.
435+
436+
Download and install RStudio for Windows from <https://posit.co/download/rstudio-desktop/#download>.
435437

436438
## Installation of Rtools
437439

438440
Due to certain R packages requiring compilation from source, it is also required that you install the **Rtools** Windows utility from CRAN. You can download Rtools built for R version `4.4.3` by visiting <https://cloud.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6459-6401.exe>. During the installation procedure, keep the default choices in the settings presented in the installation dialog.
439441

440-
Once the installation is complete, launch a new R session (if you have an existing session open, close that session first) and in the console, run the following command that should give the location of your Rtools installation:
442+
Once the installation is complete, launch a new R session (if you have an existing session open, close that session first) and in the console, run the following command, `Sys.which("make")` to verify that the installation of Rtools was successful:
441443

442444
``` r
443-
Sys.which("make")
444-
"C:\\rtools44\\usr\\bin\\make.exe"
445+
> Sys.which("make")
446+
[1] "C:\\rtools44\\usr\\bin\\make.exe"
445447
```
446448

447449
## Initialize R Program Execution Environment
@@ -518,6 +520,18 @@ renv::restore(prompt = FALSE)
518520
Due to certain R packages requiring compilation from their source versions, 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.
519521
:::
520522

523+
After all packages have been installed, you should Restart your Session.
524+
525+
* Select `Session -> Restart R`
526+
527+
A similar message should appear in your console. This indicates that your R Session
528+
is synced to all Pilot 5 packages needed to reproduce the Pilot 5 analysis.
529+
530+
```r
531+
Restarting R session...
532+
- Project 'C:/pilot5-files' loaded. [renv 1.1.4]
533+
```
534+
521535
## Execute R Programs
522536

523537
To reproduce the analysis results from the JSON transport files, set up and run the following programs in the order below:
@@ -527,19 +541,12 @@ To reproduce the analysis results from the JSON transport files, set up and run
527541

528542
Edit the `.Rprofile` file created in the working directory to match the following contents:
529543

530-
::: {.callout-warning}
531-
532-
## TO DO
533-
534-
Ensure that the paths defined in the snippet below reflect the eCTD bundle structure
535-
:::
536544

537545
```r
538546
source("renv/activate.R")
539547
Sys.setenv(RENV_DOWNLOAD_FILE_METHOD = "libcurl")
540548

541549
# File locations
542-
543550
path <- list(
544551
sdtm = file.path(getwd(), "m5/datasets/rconsortiumpilot5/tabulations/sdtm"),
545552
adam = file.path(getwd(), "m5/datasets/rconsortiumpilot5/analysis/adam/datasets"),
@@ -549,7 +556,20 @@ path <- list(
549556
)
550557
```
551558

552-
2. Restart R Session
559+
2. Restart R Session
560+
561+
* Select `Session -> Restart R`
562+
* This will ensure that the list of paths in your Global Environment is populated.
563+
564+
Double check that path object has been created in your Global Environment using
565+
the following code `exists("path")`.
566+
567+
You should receive the following message in your console:
568+
569+
```r
570+
> exists("path")
571+
[1] TRUE
572+
```
553573

554574
3. Using the source function, run the `pilot5-helper-fcns.r` program,
555575
which will load all helper functions for datasets and displays into your global environment.
@@ -558,7 +578,10 @@ which will load all helper functions for datasets and displays into your global
558578
source(file.path(path$programs, "pilot5-helper-fcns.r"))
559579
```
560580

561-
4. Convert sdtm JSON files to rds files
581+
4. Convert sdtm JSON files to rds files. The sdtm files are in json transport file format
582+
and need to be converted to rds files to run the ADaM programs.
583+
584+
Run the following code:
562585

563586
```r
564587
sdtm_files <- list.files(
@@ -572,19 +595,22 @@ convert_json_to_rds(sdtm_files, output_dir = file.path(path$sdtm))
572595

573596
5. Execute ADaM programs as seen in the order below:
574597

575-
* `adsl.r`
576-
* `adadas.r`
577-
* `adae.r`
578-
* `adlbc.r`
579-
* `adtte.r`
598+
- `adsl.r`
599+
- `adadas.r`
600+
- `adae.r`
601+
- `adlbc.r`
602+
- `adtte.r`
603+
604+
The rds files will be created for each ADaM in the `adamdata` folder.
580605

581-
6. Execute Display programs
606+
6. Execute Display programs as seen in the order below:
582607

583-
* `tlf-demographic.r`
584-
* `tlf-efficacy.r`
585-
* `tlf-kmplot.r`
586-
* `tlf-primary.r`
608+
- `tlf-demographic.r`
609+
- `tlf-efficacy.r`
610+
- `tlf-kmplot.r`
611+
- `tlf-primary.r`
587612

613+
The output files will be created for each display in the `output` folder.
588614

589615
# Appendix 2
590616

renv.lock

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
"Description": "Provides color schemes for maps (and other graphics) designed by Cynthia Brewer as described at http://colorbrewer2.org.",
132132
"License": "Apache License 2.0",
133133
"NeedsCompilation": "no",
134-
"Repository": "CRAN"
134+
"Repository": "RSPM",
135+
"Encoding": "UTF-8"
135136
},
136137
"Rcpp": {
137138
"Package": "Rcpp",
@@ -370,7 +371,8 @@
370371
"NeedsCompilation": "no",
371372
"Author": "Hadley Wickham [aut, cre]",
372373
"Maintainer": "Hadley Wickham <hadley@rstudio.com>",
373-
"Repository": "CRAN"
374+
"Repository": "RSPM",
375+
"Encoding": "UTF-8"
374376
},
375377
"backports": {
376378
"Package": "backports",
@@ -411,7 +413,8 @@
411413
"License": "GPL-2 | GPL-3",
412414
"URL": "http://www.rforge.net/base64enc",
413415
"NeedsCompilation": "yes",
414-
"Repository": "CRAN"
416+
"Repository": "RSPM",
417+
"Encoding": "UTF-8"
415418
},
416419
"bit": {
417420
"Package": "bit",
@@ -774,7 +777,8 @@
774777
"NeedsCompilation": "no",
775778
"Author": "Jennifer Bryan [cre, aut], Hadley Wickham [ctb]",
776779
"Maintainer": "Jennifer Bryan <jenny@stat.ubc.ca>",
777-
"Repository": "CRAN"
780+
"Repository": "RSPM",
781+
"Encoding": "UTF-8"
778782
},
779783
"checkmate": {
780784
"Package": "checkmate",
@@ -1082,40 +1086,6 @@
10821086
"Maintainer": "Jeroen Ooms <jeroenooms@gmail.com>",
10831087
"Repository": "CRAN"
10841088
},
1085-
"data.table": {
1086-
"Package": "data.table",
1087-
"Version": "1.17.8",
1088-
"Source": "Repository",
1089-
"Title": "Extension of `data.frame`",
1090-
"Depends": [
1091-
"R (>= 3.3.0)"
1092-
],
1093-
"Imports": [
1094-
"methods"
1095-
],
1096-
"Suggests": [
1097-
"bit64 (>= 4.0.0)",
1098-
"bit (>= 4.0.4)",
1099-
"R.utils",
1100-
"xts",
1101-
"zoo (>= 1.8-1)",
1102-
"yaml",
1103-
"knitr",
1104-
"markdown"
1105-
],
1106-
"Description": "Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns, friendly and fast character-separated-value read/write. Offers a natural and flexible syntax, for faster development.",
1107-
"License": "MPL-2.0 | file LICENSE",
1108-
"URL": "https://r-datatable.com, https://Rdatatable.gitlab.io/data.table, https://github.com/Rdatatable/data.table",
1109-
"BugReports": "https://github.com/Rdatatable/data.table/issues",
1110-
"VignetteBuilder": "knitr",
1111-
"Encoding": "UTF-8",
1112-
"ByteCompile": "TRUE",
1113-
"Authors@R": "c( person(\"Tyson\",\"Barrett\", role=c(\"aut\",\"cre\"), email=\"t.barrett88@gmail.com\", comment = c(ORCID=\"0000-0002-2137-1391\")), person(\"Matt\",\"Dowle\", role=\"aut\", email=\"mattjdowle@gmail.com\"), person(\"Arun\",\"Srinivasan\", role=\"aut\", email=\"asrini@pm.me\"), person(\"Jan\",\"Gorecki\", role=\"aut\"), person(\"Michael\",\"Chirico\", role=\"aut\", comment = c(ORCID=\"0000-0003-0787-087X\")), person(\"Toby\",\"Hocking\", role=\"aut\", comment = c(ORCID=\"0000-0002-3146-0865\")), person(\"Benjamin\",\"Schwendinger\",role=\"aut\", comment = c(ORCID=\"0000-0003-3315-8114\")), person(\"Ivan\", \"Krylov\", role=\"aut\", email=\"ikrylov@disroot.org\", comment = c(ORCID=\"0000-0002-0172-3812\")), person(\"Pasha\",\"Stetsenko\", role=\"ctb\"), person(\"Tom\",\"Short\", role=\"ctb\"), person(\"Steve\",\"Lianoglou\", role=\"ctb\"), person(\"Eduard\",\"Antonyan\", role=\"ctb\"), person(\"Markus\",\"Bonsch\", role=\"ctb\"), person(\"Hugh\",\"Parsonage\", role=\"ctb\"), person(\"Scott\",\"Ritchie\", role=\"ctb\"), person(\"Kun\",\"Ren\", role=\"ctb\"), person(\"Xianying\",\"Tan\", role=\"ctb\"), person(\"Rick\",\"Saporta\", role=\"ctb\"), person(\"Otto\",\"Seiskari\", role=\"ctb\"), person(\"Xianghui\",\"Dong\", role=\"ctb\"), person(\"Michel\",\"Lang\", role=\"ctb\"), person(\"Watal\",\"Iwasaki\", role=\"ctb\"), person(\"Seth\",\"Wenchel\", role=\"ctb\"), person(\"Karl\",\"Broman\", role=\"ctb\"), person(\"Tobias\",\"Schmidt\", role=\"ctb\"), person(\"David\",\"Arenburg\", role=\"ctb\"), person(\"Ethan\",\"Smith\", role=\"ctb\"), person(\"Francois\",\"Cocquemas\", role=\"ctb\"), person(\"Matthieu\",\"Gomez\", role=\"ctb\"), person(\"Philippe\",\"Chataignon\", role=\"ctb\"), person(\"Nello\",\"Blaser\", role=\"ctb\"), person(\"Dmitry\",\"Selivanov\", role=\"ctb\"), person(\"Andrey\",\"Riabushenko\", role=\"ctb\"), person(\"Cheng\",\"Lee\", role=\"ctb\"), person(\"Declan\",\"Groves\", role=\"ctb\"), person(\"Daniel\",\"Possenriede\", role=\"ctb\"), person(\"Felipe\",\"Parages\", role=\"ctb\"), person(\"Denes\",\"Toth\", role=\"ctb\"), person(\"Mus\",\"Yaramaz-David\", role=\"ctb\"), person(\"Ayappan\",\"Perumal\", role=\"ctb\"), person(\"James\",\"Sams\", role=\"ctb\"), person(\"Martin\",\"Morgan\", role=\"ctb\"), person(\"Michael\",\"Quinn\", role=\"ctb\"), person(\"@javrucebo\",\"\", role=\"ctb\"), person(\"@marc-outins\",\"\", role=\"ctb\"), person(\"Roy\",\"Storey\", role=\"ctb\"), person(\"Manish\",\"Saraswat\", role=\"ctb\"), person(\"Morgan\",\"Jacob\", role=\"ctb\"), person(\"Michael\",\"Schubmehl\", role=\"ctb\"), person(\"Davis\",\"Vaughan\", role=\"ctb\"), person(\"Leonardo\",\"Silvestri\", role=\"ctb\"), person(\"Jim\",\"Hester\", role=\"ctb\"), person(\"Anthony\",\"Damico\", role=\"ctb\"), person(\"Sebastian\",\"Freundt\", role=\"ctb\"), person(\"David\",\"Simons\", role=\"ctb\"), person(\"Elliott\",\"Sales de Andrade\", role=\"ctb\"), person(\"Cole\",\"Miller\", role=\"ctb\"), person(\"Jens Peder\",\"Meldgaard\", role=\"ctb\"), person(\"Vaclav\",\"Tlapak\", role=\"ctb\"), person(\"Kevin\",\"Ushey\", role=\"ctb\"), person(\"Dirk\",\"Eddelbuettel\", role=\"ctb\"), person(\"Tony\",\"Fischetti\", role=\"ctb\"), person(\"Ofek\",\"Shilon\", role=\"ctb\"), person(\"Vadim\",\"Khotilovich\", role=\"ctb\"), person(\"Hadley\",\"Wickham\", role=\"ctb\"), person(\"Bennet\",\"Becker\", role=\"ctb\"), person(\"Kyle\",\"Haynes\", role=\"ctb\"), person(\"Boniface Christian\",\"Kamgang\", role=\"ctb\"), person(\"Olivier\",\"Delmarcell\", role=\"ctb\"), person(\"Josh\",\"O'Brien\", role=\"ctb\"), person(\"Dereck\",\"de Mezquita\", role=\"ctb\"), person(\"Michael\",\"Czekanski\", role=\"ctb\"), person(\"Dmitry\", \"Shemetov\", role=\"ctb\"), person(\"Nitish\", \"Jha\", role=\"ctb\"), person(\"Joshua\", \"Wu\", role=\"ctb\"), person(\"Iago\", \"Giné-Vázquez\", role=\"ctb\"), person(\"Anirban\", \"Chetia\", role=\"ctb\"), person(\"Doris\", \"Amoakohene\", role=\"ctb\"), person(\"Angel\", \"Feliz\", role=\"ctb\"), person(\"Michael\",\"Young\", role=\"ctb\"), person(\"Mark\", \"Seeto\", role=\"ctb\"), person(\"Philippe\", \"Grosjean\", role=\"ctb\"), person(\"Vincent\", \"Runge\", role=\"ctb\"), person(\"Christian\", \"Wia\", role=\"ctb\"), person(\"Elise\", \"Maigné\", role=\"ctb\"), person(\"Vincent\", \"Rocher\", role=\"ctb\"), person(\"Vijay\", \"Lulla\", role=\"ctb\"), person(\"Aljaž\", \"Sluga\", role=\"ctb\"), person(\"Bill\", \"Evans\", role=\"ctb\") )",
1114-
"NeedsCompilation": "yes",
1115-
"Author": "Tyson Barrett [aut, cre] (ORCID: <https://orcid.org/0000-0002-2137-1391>), Matt Dowle [aut], Arun Srinivasan [aut], Jan Gorecki [aut], Michael Chirico [aut] (ORCID: <https://orcid.org/0000-0003-0787-087X>), Toby Hocking [aut] (ORCID: <https://orcid.org/0000-0002-3146-0865>), Benjamin Schwendinger [aut] (ORCID: <https://orcid.org/0000-0003-3315-8114>), Ivan Krylov [aut] (ORCID: <https://orcid.org/0000-0002-0172-3812>), Pasha Stetsenko [ctb], Tom Short [ctb], Steve Lianoglou [ctb], Eduard Antonyan [ctb], Markus Bonsch [ctb], Hugh Parsonage [ctb], Scott Ritchie [ctb], Kun Ren [ctb], Xianying Tan [ctb], Rick Saporta [ctb], Otto Seiskari [ctb], Xianghui Dong [ctb], Michel Lang [ctb], Watal Iwasaki [ctb], Seth Wenchel [ctb], Karl Broman [ctb], Tobias Schmidt [ctb], David Arenburg [ctb], Ethan Smith [ctb], Francois Cocquemas [ctb], Matthieu Gomez [ctb], Philippe Chataignon [ctb], Nello Blaser [ctb], Dmitry Selivanov [ctb], Andrey Riabushenko [ctb], Cheng Lee [ctb], Declan Groves [ctb], Daniel Possenriede [ctb], Felipe Parages [ctb], Denes Toth [ctb], Mus Yaramaz-David [ctb], Ayappan Perumal [ctb], James Sams [ctb], Martin Morgan [ctb], Michael Quinn [ctb], @javrucebo [ctb], @marc-outins [ctb], Roy Storey [ctb], Manish Saraswat [ctb], Morgan Jacob [ctb], Michael Schubmehl [ctb], Davis Vaughan [ctb], Leonardo Silvestri [ctb], Jim Hester [ctb], Anthony Damico [ctb], Sebastian Freundt [ctb], David Simons [ctb], Elliott Sales de Andrade [ctb], Cole Miller [ctb], Jens Peder Meldgaard [ctb], Vaclav Tlapak [ctb], Kevin Ushey [ctb], Dirk Eddelbuettel [ctb], Tony Fischetti [ctb], Ofek Shilon [ctb], Vadim Khotilovich [ctb], Hadley Wickham [ctb], Bennet Becker [ctb], Kyle Haynes [ctb], Boniface Christian Kamgang [ctb], Olivier Delmarcell [ctb], Josh O'Brien [ctb], Dereck de Mezquita [ctb], Michael Czekanski [ctb], Dmitry Shemetov [ctb], Nitish Jha [ctb], Joshua Wu [ctb], Iago Giné-Vázquez [ctb], Anirban Chetia [ctb], Doris Amoakohene [ctb], Angel Feliz [ctb], Michael Young [ctb], Mark Seeto [ctb], Philippe Grosjean [ctb], Vincent Runge [ctb], Christian Wia [ctb], Elise Maigné [ctb], Vincent Rocher [ctb], Vijay Lulla [ctb], Aljaž Sluga [ctb], Bill Evans [ctb]",
1116-
"Maintainer": "Tyson Barrett <t.barrett88@gmail.com>",
1117-
"Repository": "CRAN"
1118-
},
11191089
"datasetjson": {
11201090
"Package": "datasetjson",
11211091
"Version": "0.3.0",
@@ -1435,7 +1405,8 @@
14351405
"NeedsCompilation": "no",
14361406
"Author": "Russell Lenth [aut, cre, cph]",
14371407
"Maintainer": "Russell Lenth <russell-lenth@uiowa.edu>",
1438-
"Repository": "CRAN"
1408+
"Repository": "RSPM",
1409+
"Encoding": "UTF-8"
14391410
},
14401411
"evaluate": {
14411412
"Package": "evaluate",
@@ -2417,7 +2388,8 @@
24172388
"stats",
24182389
"graphics"
24192390
],
2420-
"Repository": "CRAN"
2391+
"Repository": "RSPM",
2392+
"Encoding": "UTF-8"
24212393
},
24222394
"lattice": {
24232395
"Package": "lattice",
@@ -2762,7 +2734,8 @@
27622734
"NeedsCompilation": "yes",
27632735
"Author": "Alan Genz [aut], Frank Bretz [aut], Tetsuhisa Miwa [aut], Xuefei Mi [aut], Friedrich Leisch [ctb], Fabian Scheipl [ctb], Bjoern Bornkamp [ctb] (<https://orcid.org/0000-0002-6294-8185>), Martin Maechler [ctb] (<https://orcid.org/0000-0002-8685-9910>), Torsten Hothorn [aut, cre] (<https://orcid.org/0000-0001-8301-0471>)",
27642736
"Maintainer": "Torsten Hothorn <Torsten.Hothorn@R-project.org>",
2765-
"Repository": "CRAN"
2737+
"Repository": "RSPM",
2738+
"Encoding": "UTF-8"
27662739
},
27672740
"nlme": {
27682741
"Package": "nlme",
@@ -2815,7 +2788,8 @@
28152788
"Maintainer": "Paul Gilbert <pgilbert.ttv9z@ncf.ca>",
28162789
"URL": "http://optimizer.r-forge.r-project.org/",
28172790
"NeedsCompilation": "no",
2818-
"Repository": "CRAN"
2791+
"Repository": "RSPM",
2792+
"Encoding": "UTF-8"
28192793
},
28202794
"patchwork": {
28212795
"Package": "patchwork",
@@ -4565,7 +4539,8 @@
45654539
"URL": "https://github.com/vubiostat/r-yaml/",
45664540
"BugReports": "https://github.com/vubiostat/r-yaml/issues",
45674541
"NeedsCompilation": "yes",
4568-
"Repository": "CRAN"
4542+
"Repository": "http://rspm/default/__linux__/focal/latest",
4543+
"Encoding": "UTF-8"
45694544
},
45704545
"yyjsonr": {
45714546
"Package": "yyjsonr",

vignettes/adrg.pdf

-621 KB
Binary file not shown.

0 commit comments

Comments
 (0)