Skip to content

Instantly share code, notes, and snippets.

@BroVic
Created January 22, 2019 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BroVic/0e9b5c67755823d26f7da55736f01988 to your computer and use it in GitHub Desktop.
Save BroVic/0e9b5c67755823d26f7da55736f01988 to your computer and use it in GitHub Desktop.
Download and install R from CRAN
# 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