Created
January 22, 2019 02:34
-
-
Save BroVic/0e9b5c67755823d26f7da55736f01988 to your computer and use it in GitHub Desktop.
Download and install R from CRAN
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
# startup.ps1 | |
# Version of the file will download R v. 3.5.2 | |
$downloadUrl = "https://cloud.r-project.org/bin/windows/base/R-3.5.2-win.exe" | |
$executable = Split-Path $downloadUrl -Leaf | |
$downloadLoc = Join-Path -Path $home -ChildPath "Desktop" | |
$newPath = Join-Path $downloadLoc -ChildPath $executable | |
Start-BitsTransfer -Source $downloadUrl -Destination $newPath | |
Start-Process $newPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment