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
Copy file name to clipboardexpand all lines: adrg/_adrg.qmd
+12-21
Original file line number
Diff line number
Diff line change
@@ -451,30 +451,21 @@ In addition, create a new directory to hold the unpacked Pilot 4 Shiny applicati
451
451
452
452
## Installation of R and RStudio
453
453
454
-
Download and install R 4.2.3 for Windows from <https://cran.r-project.org/bin/windows/base/old/4.2.3/R-4.2.3-win.exe>. While optional, tt 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>.
454
+
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>.
455
455
456
456
::: callout-info
457
457
When launching RStudio for the first time, you may be prompted to select the version of R to use. Ensure that the default selection of __Use your machine's default 64-bit version of R__ is selected and click OK.
458
458
:::
459
459
460
460
## Installation of Rtools
461
461
462
-
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 versions`4.0.0` - `4.1.3` by visiting <https://cloud.r-project.org/bin/windows/Rtools/rtools42/files/rtools42-5355-5357.exe>. During the installation procedure, keep the default choices in the settings presented in the installation dialog.
462
+
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.1` by visiting <https://cloud.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe>. During the installation procedure, keep the default choices in the settings presented in the installation dialog.
463
463
464
-
After the installation is complete, an additional configuration is required in order for R to locate the build tools offered by the Rtools utility. This procedure was adapted from the **Using Rtools on Windows** guide available at <https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html>:
465
-
466
-
* Launch a new R session, either through the default R GUI or RStudio
* Restart your R session by closing and re-opening either the R GUI or RStudio. In the console, run the following command that should give the location of your Rtools installation:
464
+
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:
474
465
475
466
```r
476
467
Sys.which("make")
477
-
## "C:\\rtools42\\usr\\bin\\make.exe"
468
+
"C:\\rtools44\\usr\\bin\\make.exe"
478
469
```
479
470
480
471
## Installation of R Packages
@@ -484,8 +475,8 @@ A minimum set of R packages are required to ensure the Pilot 2 Shiny application
484
475
```r
485
476
install.packages("remotes")
486
477
487
-
# install version 1.0.3 of the renv package:
488
-
remotes::install_version("renv", version="1.0.3")
478
+
# install version 1.0.7 of the renv package:
479
+
remotes::install_version("renv", version="1.0.7")
489
480
```
490
481
491
482
## Extract Application Bundle
@@ -514,7 +505,7 @@ Open the RStudio Project file `submissions-pilot4-webR.Rproj` within the directo
514
505
1. Select `File -> Open Project`
515
506
2. Click the **Browse** button and navigate to the `r4app` directory to select the `submissions-pilot4-webr.Rproj` file.
516
507
517
-
RStudio will refresh the window and automatically install the `renv` package into the project directory. You will see a prompt about the installation of the `BiocManager` package. Accept the installation by typing `y` in the console. To complete the process of restoring remaining R packages, run the following command in the R console:
508
+
RStudio will refresh the window and automatically install the `renv` package into the project directory. You may see a prompt about the installation of the `BiocManager` package. If so, accept the installation by typing `y` in the console. To complete the process of restoring remaining R packages, run the following command in the R console:
518
509
519
510
```r
520
511
renv::restore(prompt=FALSE)
@@ -535,12 +526,12 @@ source("utils.R")
535
526
Launch a new R session in the `r4app` directory of the extracted application bundle. By default, the R Gui interface on Windows will launch a new R session in your default Windows home directory (typically the **Documents** folder). Perform the following steps to ensure R is launched in the proper directory.
536
527
537
528
::: callout-note
538
-
The procedure below assumes R 4.2.3 has been installed in a default location. If you are unsure of the full path to the R GUI executable on your system, you can find the location on your system by performing the following steps:
529
+
The procedure below assumes R 4.4.1 has been installed in a default location. If you are unsure of the full path to the R GUI executable on your system, you can find the location on your system by performing the following steps:
539
530
540
531
1. Open the Windows Start Menu and expand to show all applications.
541
532
2. Navigate to the R entry and expand the section such that all R program entries are visible.
542
-
3. Right-click the `R x64 4.2.3` entry and select `More -> Open file location`.
543
-
4. A new folder window will open with the shortcut `R x64 4.2.3` highlighted. Right-click this entry and select **Properties**
533
+
3. Right-click the `R x64 4.4.1` entry and select `More -> Open file location`.
534
+
4. A new folder window will open with the shortcut `R x64 4.4.1` highlighted. Right-click this entry and select **Properties**
544
535
5. In the Properties window, copy the path specified in the **Target** text field. The portion of the text in quotations gives the full path to the `Rgui.exe` location on your system.
3. Launch the Windows R GUI in this session by running the following command:
555
546
556
547
```sh
557
-
C:\"Program Files"\R\R-4.2.3\bin\x64\Rgui.exe
548
+
C:\"Program Files"\R\R-4.4.1\bin\x64\Rgui.exe
558
549
```
559
550
560
551
The R GUI will launch and automatically install the `renv` package into the project directory. You will see a prompt about the installation of the `BiocManager` package. Accept the installation by typing `y`in the console. To complete the process of restoring remaining R packages, run the following commandin the R console:
@@ -606,7 +597,7 @@ run_app_webassembly()
606
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`.
607
598
608
599
::: callout-note
609
-
When visiting the web-assembly version of the application for the first time, 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.
600
+
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