Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e71cc39
commit 0816a4f
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$dir = "C:\R\R-win.exe" | ||
$urlR = "https://cran.r-project.org/bin/windows/base/R-4.0.3-win.exe" | ||
$outputR = "$dir\R-win.exe" | ||
$wcR = New-Object System.Net.WebClient | ||
$wcR.DownloadFile($urlR, $outputR) | ||
$dirR = $dir + "R-win.exe" | ||
Start-Process -FilePath $dirR -ArgumentList "/S /v/qn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
#!/usr/bin/env bash | ||
sudo apt install r-base | ||
# create empty folder for user library. | ||
# necessary for non-root users who have | ||
# never installed an R package before. | ||
# Alternatively, we require the renv | ||
# package to be installed already, then we can | ||
# omit that. | ||
Rscript -e 'dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)' |