@@ -4,10 +4,10 @@ $ProgressPreference = "SilentlyContinue" # PS progress bar is slow
4
4
$ErrorActionPreference = " Stop"
5
5
6
6
# R environment
7
- Invoke-WebRequest - Uri " https://cloud.r-project.org/bin/windows/base/R-4.4.0 -win.exe" - OutFile C:\Tools\R-installer.exe
7
+ Invoke-WebRequest - Uri " https://cloud.r-project.org/bin/windows/base/R-4.4.1 -win.exe" - OutFile C:\Tools\R-installer.exe
8
8
Start-Process C:\Tools\R-installer.exe - ArgumentList " /VERYSILENT" , " /NORESTART" - NoNewWindow - Wait - PassThru
9
9
10
- Invoke-WebRequest - Uri " https://download1.rstudio.org/electron/windows/RStudio-2024.04.1-748 .exe" - OutFile C:\Tools\RStudio-installer.exe
10
+ Invoke-WebRequest - Uri " https://download1.rstudio.org/electron/windows/RStudio-2024.04.2-764 .exe" - OutFile C:\Tools\RStudio-installer.exe
11
11
Start-Process C:\Tools\RStudio-installer.exe - ArgumentList " /S" - NoNewWindow - Wait - PassThru
12
12
13
13
Invoke-WebRequest - Uri " https://cran.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe" - OutFile C:\Tools\RTools.exe
@@ -17,7 +17,7 @@ Start-Process C:\Tools\RTools.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait
17
17
$pkgs = " tidyverse" , " odbc" , " dbi" , " qqman" , " metafor" , " tidyr" , " ggplot2" ,`
18
18
" hmisc" , " data.table" , " dplyr" , " lubridate" , " survival" , " survminer"
19
19
foreach ($pkg in $pkgs ) {
20
- & " C:\Program Files\R\R-4.4.0 \bin\Rscript.exe" `
20
+ & " C:\Program Files\R\R-4.4.1 \bin\Rscript.exe" `
21
21
- e " install.packages('$pkg ', repos='http://cran.uk.r-project.org')"
22
22
}
23
23
@@ -34,5 +34,5 @@ local({r <- getOption("repos")
34
34
# Set timezone
35
35
Sys.setenv(TZ='Europe/London')
36
36
"@
37
- Set-Content " C:\Program Files\R\R-4.4.0 \etc\Rprofile.site" $RConfig
37
+ Set-Content " C:\Program Files\R\R-4.4.1 \etc\Rprofile.site" $RConfig
38
38
Set-Content " C:\Users\Administrator\Documents\.Renviron" " RSTUDIO_DISABLE_SECURE_DOWNLOAD_WARNING=1"
0 commit comments