Skip to content

Commit

Permalink
Add a bunch of default R packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronJackson committed May 15, 2024
1 parent b708610 commit ef7ead3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/rstudio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Start-Process C:\Tools\RStudio-installer.exe -ArgumentList "/S" -NoNewWindow -Wa
Invoke-WebRequest -Uri "https://cran.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe" -OutFile C:\Tools\RTools.exe
Start-Process C:\Tools\RTools.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait -PassThru

# Install some default packages
$pkgs = "tidyverse","odbc","dbi","qqman","metafor","tidyr","ggplot2",`
"hmisc","data.table","dplyr","lubridate","survival","survminer"
foreach ($pkg in $pkgs) {
& "C:\Program Files\R\R-4.4.0\bin\Rscript.exe" `
-e "install.packages('$pkg', repos='http://cran.uk.r-project.org')"
}

$RConfig = @"
# Set the default help type
options(help_type="html")
Expand Down

0 comments on commit ef7ead3

Please sign in to comment.